Results

By type

          mariadb 23:03:08.58 
mariadb 23:03:08.59 Welcome to the Bitnami mariadb-galera container
mariadb 23:03:08.59 Subscribe to project updates by watching https://github.com/bitnami/bitnami-docker-mariadb-galera
mariadb 23:03:08.59 Submit issues and feature requests at https://github.com/bitnami/bitnami-docker-mariadb-galera/issues
mariadb 23:03:08.60 
mariadb 23:03:08.60 INFO  ==> ** Starting MariaDB setup **
mariadb 23:03:08.65 INFO  ==> Validating settings in MYSQL_*/MARIADB_* env vars
mariadb 23:03:08.76 DEBUG ==> Set Galera cluster address to gcomm://mariadb-galera-headless.onap.svc.cluster.local
mariadb 23:03:08.78 INFO  ==> Initializing mariadb database
mariadb 23:03:08.79 DEBUG ==> Ensuring expected directories/files exist
mariadb 23:03:08.84 INFO  ==> Updating 'my.cnf' with custom configuration
mariadb 23:03:08.86 INFO  ==> Setting user option
mariadb 23:03:08.87 DEBUG ==> Setting user to 'my-user' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 23:03:08.89 INFO  ==> Setting wsrep_node_name option
mariadb 23:03:08.89 DEBUG ==> Setting wsrep_node_name to 'dev-mariadb-galera-2' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 23:03:08.90 INFO  ==> Setting wsrep_node_address option
mariadb 23:03:08.91 DEBUG ==> Setting wsrep_node_address to '10.242.218.73' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 23:03:08.98 DEBUG ==> Set Galera cluster address to gcomm://mariadb-galera-headless.onap.svc.cluster.local
mariadb 23:03:08.99 INFO  ==> Setting wsrep_cluster_address option
mariadb 23:03:08.99 DEBUG ==> Setting wsrep_cluster_address to 'gcomm://mariadb-galera-headless.onap.svc.cluster.local' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 23:03:09.00 INFO  ==> Setting wsrep_sst_auth option
mariadb 23:03:09.01 DEBUG ==> Setting wsrep_sst_auth to 'mariabackup:AE39hEL5' in mariadb configuration file /opt/bitnami/mariadb/conf/my.cnf
mariadb 23:03:09.08 INFO  ==> ** MariaDB setup finished! **

mariadb 23:03:09.15 INFO  ==> ** Starting MariaDB **
mariadb 23:03:09.16 INFO  ==> Setting previous boot
2022-03-09 23:03:09 0 [Warning] WSREP: option --wsrep-causal-reads is deprecated
2022-03-09 23:03:09 0 [Warning] WSREP: --wsrep-causal-reads=ON takes precedence over --wsrep-sync-wait=0. WSREP_SYNC_WAIT_BEFORE_READ is on
2022-03-09 23:03:09 0 [Note] /opt/bitnami/mariadb/sbin/mysqld (server 10.6.5-MariaDB-log) starting as process 1 ...
2022-03-09 23:03:09 0 [Note] WSREP: Loading provider /opt/bitnami/mariadb/lib/libgalera_smm.so initial position: 00000000-0000-0000-0000-000000000000:-1
2022-03-09 23:03:09 0 [Note] WSREP: wsrep_load(): loading provider library '/opt/bitnami/mariadb/lib/libgalera_smm.so'
2022-03-09 23:03:09 0 [Note] WSREP: wsrep_load(): Galera 4.9(rXXXX) by Codership Oy  loaded successfully.
2022-03-09 23:03:09 0 [Note] WSREP: CRC-32C: using 64-bit x86 acceleration.
2022-03-09 23:03:09 0 [Warning] WSREP: Could not open state file for reading: '/bitnami/mariadb/data//grastate.dat'
2022-03-09 23:03:09 0 [Note] WSREP: Found saved state: 00000000-0000-0000-0000-000000000000:-1, safe_to_bootstrap: 1
2022-03-09 23:03:09 0 [Note] WSREP: GCache DEBUG: opened preamble:
Version: 0
UUID: 00000000-0000-0000-0000-000000000000
Seqno: -1 - -1
Offset: -1
Synced: 0
2022-03-09 23:03:09 0 [Note] WSREP: Skipped GCache ring buffer recovery: could not determine history UUID.
2022-03-09 23:03:09 0 [Note] WSREP: Passing config to GCS: base_dir = /bitnami/mariadb/data/; base_host = 10.242.218.73; base_port = 4567; cert.log_conflicts = no; cert.optimistic_pa = yes; debug = no; evs.auto_evict = 0; evs.delay_margin = PT1S; evs.delayed_keep_period = PT30S; evs.inactive_check_period = PT0.5S; evs.inactive_timeout = PT15S; evs.join_retrans_period = PT1S; evs.max_install_timeouts = 3; evs.send_window = 4; evs.stats_report_period = PT1M; evs.suspect_timeout = PT5S; evs.user_send_window = 2; evs.view_forget_timeout = PT24H; gcache.dir = /bitnami/mariadb/data/; gcache.keep_pages_size = 0; gcache.mem_size = 0; gcache.name = galera.cache; gcache.page_size = 128M; gcache.recover = yes; gcache.size = 128M; gcomm.thread_prio = ; gcs.fc_debug = 0; gcs.fc_factor = 1.0; gcs.fc_limit = 16; gcs.fc_master_slave = no; gcs.max_packet_size = 64500; gcs.max_throttle = 0.25; gcs.recv_q_hard_limit = 9223372036854775807; gcs.recv_q_soft_limit = 0.25; gcs.sync_donor = no; gmcast.segment = 0; gmcast.version = 0; pc.announce_timeout = PT3S;
2022-03-09 23:03:09 0 [Note] WSREP: Start replication
2022-03-09 23:03:09 0 [Note] WSREP: Connecting with bootstrap option: 0
2022-03-09 23:03:09 0 [Note] WSREP: Setting GCS initial position to 00000000-0000-0000-0000-000000000000:-1
2022-03-09 23:03:09 0 [Note] WSREP: protonet asio version 0
2022-03-09 23:03:09 0 [Note] WSREP: Using CRC-32C for message checksums.
2022-03-09 23:03:09 0 [Note] WSREP: backend: asio
2022-03-09 23:03:09 0 [Note] WSREP: gcomm thread scheduling priority set to other:0 
2022-03-09 23:03:09 0 [Warning] WSREP: access file(/bitnami/mariadb/data//gvwstate.dat) failed(No such file or directory)
2022-03-09 23:03:09 0 [Note] WSREP: restore pc from disk failed
2022-03-09 23:03:09 0 [Note] WSREP: GMCast version 0
2022-03-09 23:03:09 0 [Note] WSREP: (16626429-9b36, 'tcp://0.0.0.0:4567') listening at tcp://0.0.0.0:4567
2022-03-09 23:03:09 0 [Note] WSREP: (16626429-9b36, 'tcp://0.0.0.0:4567') multicast: , ttl: 1
2022-03-09 23:03:09 0 [Note] WSREP: EVS version 1
2022-03-09 23:03:09 0 [Note] WSREP: gcomm: connecting to group 'galera', peer 'mariadb-galera-headless.onap.svc.cluster.local:'
2022-03-09 23:03:09 0 [Note] WSREP: (16626429-9b36, 'tcp://0.0.0.0:4567') connection established to f9e4435d-9a92 tcp://10.242.32.203:4567
2022-03-09 23:03:09 0 [Note] WSREP: (16626429-9b36, 'tcp://0.0.0.0:4567') turning message relay requesting on, nonlive peers: tcp://10.242.26.9:4567 
2022-03-09 23:03:09 0 [Note] WSREP: (16626429-9b36, 'tcp://0.0.0.0:4567') connection established to e9cc9e5b-ac20 tcp://10.242.26.9:4567
2022-03-09 23:03:09 0 [Note] WSREP: EVS version upgrade 0 -> 1
2022-03-09 23:03:09 0 [Note] WSREP: declaring e9cc9e5b-ac20 at tcp://10.242.26.9:4567 stable
2022-03-09 23:03:09 0 [Note] WSREP: declaring f9e4435d-9a92 at tcp://10.242.32.203:4567 stable
2022-03-09 23:03:09 0 [Note] WSREP: PC protocol upgrade 0 -> 1
2022-03-09 23:03:09 0 [Note] WSREP: Node e9cc9e5b-ac20 state prim
2022-03-09 23:03:09 0 [Note] WSREP: view(view_id(PRIM,16626429-9b36,3) memb {
	16626429-9b36,0
	e9cc9e5b-ac20,0
	f9e4435d-9a92,0
} joined {
} left {
} partitioned {
})
2022-03-09 23:03:09 0 [Note] WSREP: save pc into disk
2022-03-09 23:03:10 0 [Note] WSREP: gcomm: connected
2022-03-09 23:03:10 0 [Note] WSREP: Changing maximum packet size to 64500, resulting msg size: 32636
2022-03-09 23:03:10 0 [Note] WSREP: Shifting CLOSED -> OPEN (TO: 0)
2022-03-09 23:03:10 0 [Note] WSREP: Opened channel 'galera'
2022-03-09 23:03:10 0 [Note] WSREP: New COMPONENT: primary = yes, bootstrap = no, my_idx = 0, memb_num = 3
2022-03-09 23:03:10 1 [Note] WSREP: Starting rollbacker thread 1
2022-03-09 23:03:10 2 [Note] WSREP: Starting applier thread 2
2022-03-09 23:03:10 0 [Note] WSREP: STATE_EXCHANGE: sent state UUID: 16fbda8e-9ffd-11ec-bb14-8e8a9fc3777a
2022-03-09 23:03:10 0 [Note] WSREP: STATE EXCHANGE: sent state msg: 16fbda8e-9ffd-11ec-bb14-8e8a9fc3777a
2022-03-09 23:03:10 0 [Note] WSREP: STATE EXCHANGE: got state msg: 16fbda8e-9ffd-11ec-bb14-8e8a9fc3777a from 0 (dev-mariadb-galera-2)
2022-03-09 23:03:10 0 [Note] WSREP: STATE EXCHANGE: got state msg: 16fbda8e-9ffd-11ec-bb14-8e8a9fc3777a from 1 (dev-mariadb-galera-0)
2022-03-09 23:03:10 0 [Note] WSREP: STATE EXCHANGE: got state msg: 16fbda8e-9ffd-11ec-bb14-8e8a9fc3777a from 2 (dev-mariadb-galera-1)
2022-03-09 23:03:10 0 [Note] WSREP: Quorum results:
	version    = 6,
	component  = PRIMARY,
	conf_id    = 2,
	members    = 2/3 (joined/total),
	act_id     = 14,
	last_appl. = 12,
	protocols  = 2/10/4 (gcs/repl/appl),
	vote policy= 0,
	group UUID = e37e2a0d-9ffc-11ec-8a55-b3055ab0a891
2022-03-09 23:03:10 0 [Note] WSREP: Flow-control interval: [28, 28]
2022-03-09 23:03:10 0 [Note] WSREP: Shifting OPEN -> PRIMARY (TO: 15)
2022-03-09 23:03:10 2 [Note] WSREP: ####### processing CC 15, local, ordered
2022-03-09 23:03:10 2 [Note] WSREP: Process first view: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891 my uuid: 16626429-9ffd-11ec-9b36-1ba0fb3102d1
2022-03-09 23:03:10 2 [Note] WSREP: Server dev-mariadb-galera-2 connected to cluster at position e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15 with ID 16626429-9ffd-11ec-9b36-1ba0fb3102d1
2022-03-09 23:03:10 2 [Note] WSREP: Server status change disconnected -> connected
2022-03-09 23:03:10 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2022-03-09 23:03:10 2 [Note] WSREP: ####### My UUID: 16626429-9ffd-11ec-9b36-1ba0fb3102d1
2022-03-09 23:03:10 2 [Note] WSREP: Cert index reset to 00000000-0000-0000-0000-000000000000:-1 (proto: 10), state transfer needed: yes
2022-03-09 23:03:10 0 [Note] WSREP: Service thread queue flushed.
2022-03-09 23:03:10 2 [Note] WSREP: ####### Assign initial position for certification: 00000000-0000-0000-0000-000000000000:-1, protocol version: -1
2022-03-09 23:03:10 2 [Note] WSREP: State transfer required: 
	Group state: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
	Local state: 00000000-0000-0000-0000-000000000000:-1
2022-03-09 23:03:10 2 [Note] WSREP: Server status change connected -> joiner
2022-03-09 23:03:10 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2022-03-09 23:03:10 0 [Note] WSREP: Joiner monitor thread started to monitor
2022-03-09 23:03:10 0 [Note] WSREP: Running: 'wsrep_sst_mariabackup --role 'joiner' --address '10.242.218.73' --datadir '/bitnami/mariadb/data/' --defaults-file '/opt/bitnami/mariadb/conf/my.cnf' --parent '1' --binlog 'mysql-bin' --mysqld-args --defaults-file=/opt/bitnami/mariadb/conf/my.cnf --basedir=/opt/bitnami/mariadb --datadir=/bitnami/mariadb/data --socket=/opt/bitnami/mariadb/tmp/mysql.sock --pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid'
WSREP_SST: [INFO] SSL configuration: CA='', CERT='', KEY='', MODE='DISABLED', encrypt='0' (20220309 23:03:10.391)
WSREP_SST: [INFO] Streaming with mbstream (20220309 23:03:10.596)
WSREP_SST: [INFO] Using socat as streamer (20220309 23:03:10.602)
WSREP_SST: [INFO] Evaluating timeout -k 310 300 socat -u TCP-LISTEN:4444,reuseaddr stdio | '/opt/bitnami/mariadb//bin/mbstream' -x; RC=( ${PIPESTATUS[@]} ) (20220309 23:03:10.657)
2022-03-09 23:03:11 2 [Note] WSREP: ####### IST uuid:00000000-0000-0000-0000-000000000000 f: 0, l: 15, STRv: 3
2022-03-09 23:03:11 2 [Note] WSREP: IST receiver addr using tcp://10.242.218.73:4568
2022-03-09 23:03:11 2 [Note] WSREP: Prepared IST receiver for 0-15, listening at: tcp://10.242.218.73:4568
2022-03-09 23:03:11 0 [Note] WSREP: Member 0.0 (dev-mariadb-galera-2) requested state transfer from '*any*'. Selected 1.0 (dev-mariadb-galera-0)(SYNCED) as donor.
2022-03-09 23:03:11 0 [Note] WSREP: Shifting PRIMARY -> JOINER (TO: 15)
2022-03-09 23:03:11 2 [Note] WSREP: Requesting state transfer: success, donor: 1
2022-03-09 23:03:11 2 [Note] WSREP: Resetting GCache seqno map due to different histories.
2022-03-09 23:03:11 2 [Note] WSREP: GCache history reset: 00000000-0000-0000-0000-000000000000:0 -> e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
WSREP_SST: [INFO] Proceeding with SST (20220309 23:03:11.906)
WSREP_SST: [INFO] Evaluating socat -u TCP-LISTEN:4444,reuseaddr stdio | '/opt/bitnami/mariadb//bin/mbstream' -x; RC=( ${PIPESTATUS[@]} ) (20220309 23:03:11.910)
WSREP_SST: [INFO] Cleaning the existing datadir and innodb-data/log directories (20220309 23:03:11.914)
WSREP_SST: [INFO] Cleaning the binlog directory . as well (20220309 23:03:11.956)
WSREP_SST: [INFO] Waiting for SST streaming to complete! (20220309 23:03:11.966)
2022-03-09 23:03:12 0 [Note] WSREP: (16626429-9b36, 'tcp://0.0.0.0:4567') turning message relay requesting off
2022-03-09 23:03:23 0 [Note] WSREP: 1.0 (dev-mariadb-galera-0): State transfer to 0.0 (dev-mariadb-galera-2) complete.
2022-03-09 23:03:23 0 [Note] WSREP: Member 1.0 (dev-mariadb-galera-0) synced with group.
WSREP_SST: [INFO] Preparing the backup at /bitnami/mariadb/data/.sst (20220309 23:03:24.239)
WSREP_SST: [INFO] Evaluating /opt/bitnami/mariadb//bin/mariabackup --prepare --no-version-check   --log-bin='mysql-bin' --target-dir='/bitnami/mariadb/data/.sst' --datadir='/bitnami/mariadb/data/.sst' --mysqld-args '--basedir=/opt/bitnami/mariadb' '--pid-file=/opt/bitnami/mariadb/tmp/mysqld.pid' > '/bitnami/mariadb/data/mariabackup.prepare.log' 2>&1 (20220309 23:03:24.245)
WSREP_SST: [INFO] Moving the backup to /bitnami/mariadb/data (20220309 23:03:24.428)
WSREP_SST: [INFO] Evaluating /opt/bitnami/mariadb//bin/mariabackup --defaults-file='/opt/bitnami/mariadb/conf/my.cnf'   --move-back --no-version-check  --force-non-empty-directories --target-dir='/bitnami/mariadb/data/.sst' --datadir='/bitnami/mariadb/data' > '/bitnami/mariadb/data/mariabackup.move.log' 2>&1 (20220309 23:03:24.440)
WSREP_SST: [INFO] Move successful, removing /bitnami/mariadb/data/.sst (20220309 23:03:25.112)
WSREP_SST: [INFO] Galera co-ords from recovery: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15 (20220309 23:03:25.149)
WSREP_SST: [INFO] Total time on joiner: 0 seconds (20220309 23:03:25.157)
WSREP_SST: [INFO] Removing the sst_in_progress file (20220309 23:03:25.171)
WSREP_SST: [INFO] Cleaning up temporary directories (20220309 23:03:25.183)
2022-03-09 23:03:25 3 [Note] WSREP: SST received
2022-03-09 23:03:25 3 [Note] WSREP: Server status change joiner -> initializing
2022-03-09 23:03:25 3 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2022-03-09 23:03:25 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2022-03-09 23:03:25 0 [Note] InnoDB: Number of pools: 1
2022-03-09 23:03:25 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2022-03-09 23:03:25 0 [Note] InnoDB: Using Linux native AIO
2022-03-09 23:03:25 0 [Note] InnoDB: Initializing buffer pool, total size = 2147483648, chunk size = 134217728
2022-03-09 23:03:25 0 [Note] InnoDB: Completed initialization of buffer pool
2022-03-09 23:03:25 0 [Note] InnoDB: Setting log file ./ib_logfile101 size to 134217728 bytes
2022-03-09 23:03:25 0 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2022-03-09 23:03:25 0 [Note] InnoDB: New log file created, LSN=65770
2022-03-09 23:03:25 0 [Note] InnoDB: 128 rollback segments are active.
2022-03-09 23:03:25 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2022-03-09 23:03:25 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
2022-03-09 23:03:25 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
2022-03-09 23:03:25 0 [Note] InnoDB: 10.6.5 started; log sequence number 0; transaction id 39
2022-03-09 23:03:25 0 [Note] InnoDB: Loading buffer pool(s) from /bitnami/mariadb/data/ib_buffer_pool
2022-03-09 23:03:25 0 [Note] Plugin 'FEEDBACK' is disabled.
2022-03-09 23:03:25 0 [Warning] 'innodb-log-files-in-group' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
2022-03-09 23:03:25 0 [Warning] 'innodb-file-format' was removed. It does nothing now and exists only for compatibility with old my.cnf files.
/opt/bitnami/mariadb/sbin/mysqld, Version: 10.6.5-MariaDB-log (Source distribution). started with:
Tcp port: 3306  Unix socket: /opt/bitnami/mariadb/tmp/mysql.sock
Time		    Id Command	Argument
2022-03-09 23:03:25 0 [Note] Recovering after a crash using mysql-bin
2022-03-09 23:03:25 0 [Note] Starting table crash recovery...
2022-03-09 23:03:25 0 [Note] Crash table recovery finished.
2022-03-09 23:03:25 0 [Note] InnoDB: Buffer pool(s) load completed at 220309 23:03:25
2022-03-09 23:03:25 0 [Note] Server socket created on IP: '0.0.0.0'.
2022-03-09 23:03:25 0 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2022-03-09 23:03:25 0 [Note] WSREP: wsrep_init_schema_and_SR 0x0
2022-03-09 23:03:25 0 [Note] WSREP: Server initialized
2022-03-09 23:03:25 0 [Note] WSREP: Server status change initializing -> initialized
2022-03-09 23:03:25 0 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2022-03-09 23:03:25 3 [Note] WSREP: Server status change initialized -> joined
2022-03-09 23:03:25 3 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2022-03-09 23:03:25 3 [Note] WSREP: Recovered position from storage: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
2022-03-09 23:03:25 8 [Note] WSREP: Starting applier thread 8
2022-03-09 23:03:25 6 [Note] WSREP: Starting applier thread 6
2022-03-09 23:03:25 7 [Note] WSREP: Starting applier thread 7
2022-03-09 23:03:25 3 [Note] WSREP: Recovered view from SST:
  id: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
  status: primary
  protocol_version: 4
  capabilities: MULTI-MASTER, CERTIFICATION, PARALLEL_APPLYING, REPLAY, ISOLATION, PAUSE, CAUSAL_READ, INCREMENTAL_WS, UNORDERED, PREORDERED, STREAMING, NBO
  final: no
  own_index: 0
  members(3):
	0: 16626429-9ffd-11ec-9b36-1ba0fb3102d1, dev-mariadb-galera-2
	1: e9cc9e5b-9ffc-11ec-ac20-7f2e6d4ba809, dev-mariadb-galera-0
	2: f9e4435d-9ffc-11ec-9a92-af870b8bbdc5, dev-mariadb-galera-1

2022-03-09 23:03:25 3 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
2022-03-09 23:03:25 10 [Note] WSREP: Recovered cluster id e37e2a0d-9ffc-11ec-8a55-b3055ab0a891
2022-03-09 23:03:25 0 [Note] /opt/bitnami/mariadb/sbin/mysqld: ready for connections.
Version: '10.6.5-MariaDB-log'  socket: '/opt/bitnami/mariadb/tmp/mysql.sock'  port: 3306  Source distribution
2022-03-09 23:03:25 3 [Note] WSREP: SST received: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
2022-03-09 23:03:25 3 [Note] WSREP: SST succeeded for position e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
2022-03-09 23:03:25 0 [Note] WSREP: Joiner monitor thread ended with total time 15 sec
2022-03-09 23:03:25 2 [Note] WSREP: Installed new state from SST: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
2022-03-09 23:03:25 2 [Note] WSREP: Cert. index preload up to 15
2022-03-09 23:03:25 0 [Note] WSREP: ####### IST applying starts with 16
2022-03-09 23:03:25 0 [Note] WSREP: ####### IST current seqno initialized to 15
2022-03-09 23:03:25 0 [Note] WSREP: Receiving IST...  0.0% (0/1 events) complete.
2022-03-09 23:03:25 0 [Note] WSREP: IST preload starting at 15
2022-03-09 23:03:25 0 [Note] WSREP: REPL Protocols: 10 (5)
2022-03-09 23:03:25 0 [Note] WSREP: Service thread queue flushed.
2022-03-09 23:03:25 0 [Note] WSREP: ####### Assign initial position for certification: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:14, protocol version: 5
2022-03-09 23:03:25 0 [Note] WSREP: REPL Protocols: 10 (5)
2022-03-09 23:03:25 0 [Note] WSREP: ####### Adjusting cert position: 14 -> 15
2022-03-09 23:03:25 0 [Note] WSREP: Service thread queue flushed.
2022-03-09 23:03:25 0 [Note] WSREP: Lowest cert index boundary for CC from preload: 15
2022-03-09 23:03:25 0 [Note] WSREP: Min available from gcache for CC from preload: 15
2022-03-09 23:03:25 0 [Note] WSREP: Receiving IST...100.0% (1/1 events) complete.
2022-03-09 23:03:25 2 [Note] WSREP: IST received: e37e2a0d-9ffc-11ec-8a55-b3055ab0a891:15
2022-03-09 23:03:25 2 [Note] WSREP: Lowest cert index boundary for CC from sst: 15
2022-03-09 23:03:25 2 [Note] WSREP: Min available from gcache for CC from sst: 15
2022-03-09 23:03:25 0 [Note] WSREP: 0.0 (dev-mariadb-galera-2): State transfer from 1.0 (dev-mariadb-galera-0) complete.
2022-03-09 23:03:25 0 [Note] WSREP: Shifting JOINER -> JOINED (TO: 15)
2022-03-09 23:03:25 0 [Note] WSREP: Member 0.0 (dev-mariadb-galera-2) synced with group.
2022-03-09 23:03:25 0 [Note] WSREP: Shifting JOINED -> SYNCED (TO: 15)
2022-03-09 23:03:25 2 [Note] WSREP: Server dev-mariadb-galera-2 synced with group
2022-03-09 23:03:25 2 [Note] WSREP: Server status change joined -> synced
2022-03-09 23:03:25 2 [Note] WSREP: Synchronized with group, ready for connections
2022-03-09 23:03:25 2 [Note] WSREP: wsrep_notify_cmd is not defined, skipping notification.
# Time: 220309 23:03:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 13  Schema:   QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000252  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 13  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:03:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 16  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 16  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:03:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 19  Schema:   QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000255  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 19  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:03:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 20  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 20  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:03:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 23  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 23  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:03:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 24  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 24  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 30  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 30  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 31  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 31  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 36  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 36  Schema:   QC_hit: No
# Query_time: 0.001998  Lock_time: 0.001906  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 37  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 37  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 40  Schema:   QC_hit: No
# Query_time: 0.001231  Lock_time: 0.000617  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 40  Schema:   QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000522  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 41  Schema:   QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 41  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 44  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 44  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 45  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 45  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000063  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 48  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 48  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 49  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 49  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 52  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 52  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:04:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 53  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 53  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 56  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 56  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 57  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 57  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 60  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 60  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 61  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 61  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 64  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 64  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 65  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 65  Schema:   QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 68  Schema:   QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000450  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 68  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 69  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 69  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 72  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 72  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 73  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 73  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000216  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 76  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 76  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:05:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 77  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 77  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 80  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 80  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 81  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 81  Schema:   QC_hit: No
# Query_time: 0.000862  Lock_time: 0.000799  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 84  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 84  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 85  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 85  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 88  Schema:   QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000396  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 88  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 89  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 89  Schema:   QC_hit: No
# Query_time: 0.000104  Lock_time: 0.000060  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 92  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 92  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 93  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 93  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 96  Schema:   QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000368  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 96  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 97  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 97  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 100  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 100  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:06:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 101  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 101  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 104  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867227;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 104  Schema:   QC_hit: No
# Query_time: 0.000099  Lock_time: 0.000057  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867227;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 105  Schema:   QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867228;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 105  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867228;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:13
# User@Host: rene[rene] @  [10.242.255.19]
# Thread_id: 106  Schema: nbi  QC_hit: No
# Query_time: 0.009753  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 79
# Rows_affected: 0  Bytes_sent: 92
use nbi;
SET timestamp=1646867233;
select table_name from information_schema.TABLES where table_type='SEQUENCE';
# Time: 220309 23:07:14
# User@Host: rene[rene] @  [10.242.255.19]
# Thread_id: 106  Schema: nbi  QC_hit: No
# Query_time: 0.007524  Lock_time: 0.001323  Rows_sent: 0  Rows_examined: 79
# Rows_affected: 0  Bytes_sent: 92
SET timestamp=1646867234;
select table_name from information_schema.TABLES where table_type='SEQUENCE';
# User@Host: rene[rene] @  [10.242.255.19]
# Thread_id: 106  Schema: nbi  QC_hit: No
# Query_time: 0.001181  Lock_time: 0.000395  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646867234;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nbi') AND (TABLE_NAME LIKE '%') AND TABLE_TYPE IN ('BASE TABLE','VIEW') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: rene[rene] @  [10.242.255.19]
# Thread_id: 106  Schema: nbi  QC_hit: No
# Query_time: 0.001522  Lock_time: 0.000418  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1247
SET timestamp=1646867234;
SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, COLUMN_NAME, CASE data_type WHEN 'bit' THEN -7 WHEN 'tinyblob' THEN -3 WHEN 'mediumblob' THEN -4 WHEN 'longblob' THEN -4 WHEN 'blob' THEN -4 WHEN 'tinytext' THEN 12 WHEN 'mediumtext' THEN -1 WHEN 'longtext' THEN -1 WHEN 'text' THEN -1 WHEN 'date' THEN 91 WHEN 'datetime' THEN 93 WHEN 'decimal' THEN 3 WHEN 'double' THEN 8 WHEN 'enum' THEN 12 WHEN 'float' THEN 7 WHEN 'int' THEN IF( COLUMN_TYPE like '%unsigned%', 4,4) WHEN 'bigint' THEN -5 WHEN 'mediumint' THEN 4 WHEN 'null' THEN 0 WHEN 'set' THEN 12 WHEN 'smallint' THEN IF( COLUMN_TYPE like '%unsigned%', 5,5) WHEN 'varchar' THEN 12 WHEN 'varbinary' THEN -3 WHEN 'char' THEN 1 WHEN 'binary' THEN -2 WHEN 'time' THEN 92 WHEN 'timestamp' THEN 93 WHEN 'tinyint' THEN IF(COLUMN_TYPE like 'tinyint(1)%',-7,-6)  WHEN 'year' THEN 91 ELSE 1111 END  DATA_TYPE, IF(COLUMN_TYPE like 'tinyint(1)%', 'BIT',  UCASE(IF( COLUMN_TYPE LIKE '%(%)%', CONCAT(SUBSTRING( COLUMN_TYPE,1, LOCATE('(',COLUMN_TYPE) - 1 ), SUBSTRING(COLUMN_TYPE ,1+locate(')', COLUMN_TYPE))), COLUMN_TYPE))) TYPE_NAME,  CASE DATA_TYPE  WHEN 'time' THEN IF(DATETIME_PRECISION = 0, 10, CAST(11 + DATETIME_PRECISION as signed integer))  WHEN 'date' THEN 10  WHEN 'datetime' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  WHEN 'timestamp' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  ELSE   IF(NUMERIC_PRECISION IS NULL, LEAST(CHARACTER_MAXIMUM_LENGTH,2147483647), NUMERIC_PRECISION)  END COLUMN_SIZE, 65535 BUFFER_LENGTH,  CONVERT (CASE DATA_TYPE WHEN 'year' THEN NUMERIC_SCALE WHEN 'tinyint' THEN 0 ELSE NUMERIC_SCALE END, UNSIGNED INTEGER) DECIMAL_DIGITS, 10 NUM_PREC_RADIX, IF(IS_NULLABLE = 'yes',1,0) NULLABLE,COLUMN_COMMENT REMARKS, COLUMN_DEFAULT COLUMN_DEF, 0 SQL_DATA_TYPE, 0 SQL_DATETIME_SUB,   LEAST(CHARACTER_OCTET_LENGTH,2147483647) CHAR_OCTET_LENGTH, ORDINAL_POSITION, IS_NULLABLE, NULL SCOPE_CATALOG, NULL SCOPE_SCHEMA, NULL SCOPE_TABLE, NULL SOURCE_DATA_TYPE, IF(EXTRA = 'auto_increment','YES','NO') IS_AUTOINCREMENT,  IF(EXTRA in ('VIRTUAL', 'PERSISTENT', 'VIRTUAL GENERATED', 'STORED GENERATED') ,'YES','NO') IS_GENERATEDCOLUMN  FROM INFORMATION_SCHEMA.COLUMNS  WHERE (TABLE_SCHEMA = 'nbi') AND (1 = 1) AND (COLUMN_NAME LIKE '%') ORDER BY TABLE_CAT, TABLE_SCHEM, TABLE_NAME, ORDINAL_POSITION;
# Time: 220309 23:07:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 110  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867237;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 110  Schema:   QC_hit: No
# Query_time: 0.002556  Lock_time: 0.002503  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867237;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: rene[rene] @  [10.242.255.19]
# Thread_id: 106  Schema: nbi  QC_hit: No
# Query_time: 0.009079  Lock_time: 0.008766  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 505
SET timestamp=1646867237;
select executiont0_.internal_id as internal1_0_, executiont0_.create_date as create_d2_0_, executiont0_.last_attempt_date as last_att3_0_, executiont0_.order_item_id as order_it4_0_, executiont0_.relied_tasks as relied_t5_0_, executiont0_.service_order_info_json as service_6_0_ from execution_task executiont0_ where trim(executiont0_.relied_tasks) like '';
# Time: 220309 23:07:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 111  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867238;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 111  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867238;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 115  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867247;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 115  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867247;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 116  Schema:   QC_hit: No
# Query_time: 0.004247  Lock_time: 0.004163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867248;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 116  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867248;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:07:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 119  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867257;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 119  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867257;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 120  Schema:   QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867258;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 120  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867258;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 123  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867267;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 123  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867267;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 124  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867268;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 124  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867268;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 127  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867277;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 127  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867277;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:07:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 128  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867278;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 128  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867278;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 131  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867287;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 131  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867287;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 132  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867288;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 132  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867288;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 135  Schema:   QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000294  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867297;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 135  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867297;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:08:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 136  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867298;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 136  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867298;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 139  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867307;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 139  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867307;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 140  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867308;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 140  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867308;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 143  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867317;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 143  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867317;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 144  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867318;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 144  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867318;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 148  Schema:   QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000297  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867327;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 148  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867327;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 149  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867328;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 149  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867328;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:08:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 152  Schema:   QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000311  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867337;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 152  Schema:   QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000323  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867337;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:08:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 153  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867338;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 153  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867338;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 156  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867347;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 156  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867347;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 157  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867348;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 157  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000291  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867348;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 160  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867357;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 160  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867357;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 161  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867358;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 161  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867358;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 164  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867367;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 164  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867367;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 165  Schema:   QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000567  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867368;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 165  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867368;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 168  Schema:   QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867377;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 168  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867377;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 169  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867378;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 169  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867378;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 172  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867387;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 172  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867387;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 173  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867388;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 173  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867388;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 176  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867397;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 176  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867397;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:09:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 177  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867398;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 177  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867398;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2022-03-09 23:09:58 7 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 220309 23:10:02
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.022088  Lock_time: 0.021855  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 56
use nengdb;
SET timestamp=1646867402;
SELECT COUNT(*) FROM nengdb.DATABASECHANGELOGLOCK;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646867402;
DELETE FROM nengdb.DATABASECHANGELOGLOCK;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.001525  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646867402;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE TABLE_SCHEMA='nengdb' AND TABLE_NAME='DATABASECHANGELOG' AND  TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# Time: 220309 23:10:03
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.026999  Lock_time: 0.026860  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 56
SET timestamp=1646867403;
SELECT COUNT(*) FROM nengdb.DATABASECHANGELOG;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1166
SET timestamp=1646867403;
SELECT * FROM nengdb.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.009262  Lock_time: 0.009198  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 56
SET timestamp=1646867403;
SELECT COUNT(*) FROM nengdb.DATABASECHANGELOGLOCK;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.073343  Lock_time: 0.073175  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 65
SET timestamp=1646867403;
SELECT MAX(ORDEREXECUTED) FROM nengdb.DATABASECHANGELOG;
# Time: 220309 23:10:04
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.035242  Lock_time: 0.035162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646867404;
delete from SERVICE_PARAMETER;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.001499  Lock_time: 0.001430  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646867404;
delete from IDENTIFIER_MAP;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.008065  Lock_time: 0.008010  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646867404;
delete from EXTERNAL_INTERFACE;
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.018198  Lock_time: 0.018027  Rows_sent: 0  Rows_examined: 4
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646867404;
delete from IDENTIFIER_MAP where POLICY_FN_NAME='UUID';
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.000113  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646867404;
delete from IDENTIFIER_MAP where POLICY_FN_NAME='TIMESTAMP';
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 6
# Rows_affected: 1  Bytes_sent: 11
SET timestamp=1646867404;
delete from IDENTIFIER_MAP where POLICY_FN_NAME='UUID';
# User@Host: nenguser[nenguser] @  [10.242.26.19]
# Thread_id: 178  Schema: nengdb  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 6
# Rows_affected: 1  Bytes_sent: 11
SET timestamp=1646867404;
delete from IDENTIFIER_MAP where POLICY_FN_NAME='TIMESTAMP';
# Time: 220309 23:10:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 181  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867407;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 181  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867407;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 182  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867408;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 182  Schema:   QC_hit: No
# Query_time: 0.016968  Lock_time: 0.016888  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867408;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 218  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867417;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 218  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867417;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 219  Schema:   QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000722  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867418;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 219  Schema:   QC_hit: No
# Query_time: 0.003727  Lock_time: 0.003647  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867418;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 222  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867427;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 222  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867427;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:10:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 223  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867428;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 223  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000065  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867428;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 226  Schema:   QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867437;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 226  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867437;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 227  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867438;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 227  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867438;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 230  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867447;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 230  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867447;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 231  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867448;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 231  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867448;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 234  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867457;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 234  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867457;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:10:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 235  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867458;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 235  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867458;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 238  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867467;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 238  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867467;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 239  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867468;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 239  Schema:   QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867468;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 242  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867477;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 242  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867477;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 243  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867478;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 243  Schema:   QC_hit: No
# Query_time: 0.000108  Lock_time: 0.000067  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867478;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 246  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867487;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 246  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867487;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 247  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867488;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 247  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867488;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 250  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867497;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 250  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867497;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 251  Schema:   QC_hit: No
# Query_time: 0.000653  Lock_time: 0.000336  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867498;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 251  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867498;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 254  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867507;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 254  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867507;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 255  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867508;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 255  Schema:   QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000258  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867508;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:11:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 258  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867517;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 258  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867517;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:11:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 259  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867518;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 259  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867518;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 265  Schema:   QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000274  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867527;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 265  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867527;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 266  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867528;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 266  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867528;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 269  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867537;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 269  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867537;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 270  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867538;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 270  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867538;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 273  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867547;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 273  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867547;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 274  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867548;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 274  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867548;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 277  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867557;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 277  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867557;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 278  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867558;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 278  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867558;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 281  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867567;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 281  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867567;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 282  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867568;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 282  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867568;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 285  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867577;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 285  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867577;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:12:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 286  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867578;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 286  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867578;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 289  Schema:   QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000428  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867587;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 289  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867587;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 290  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867588;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 290  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867588;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 293  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867597;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 293  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867597;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 294  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867598;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 294  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000067  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867598;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 297  Schema:   QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000668  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867607;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 297  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867607;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 298  Schema:   QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000216  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867608;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 298  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867608;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 301  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867617;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 301  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867617;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 302  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867618;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 302  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867618;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 305  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867627;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 305  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867627;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 306  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867628;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 306  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867628;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 309  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867637;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 309  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867637;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:13:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 310  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867638;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 310  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867638;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 313  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867647;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 313  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000072  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867647;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 314  Schema:   QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000269  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867648;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 314  Schema:   QC_hit: No
# Query_time: 0.000736  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867648;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 317  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867657;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 317  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867657;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 318  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867658;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 318  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867658;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 321  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867667;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 321  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867667;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 322  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867668;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 322  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867668;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 325  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867677;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 325  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867677;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 326  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867678;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 326  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867678;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 329  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867687;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 329  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867687;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 330  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867688;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 330  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867688;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 333  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867697;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 333  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867697;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:14:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 334  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867698;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 334  Schema:   QC_hit: No
# Query_time: 0.001219  Lock_time: 0.001162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867698;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 337  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867707;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 337  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867707;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 338  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867708;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 338  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867708;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 341  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867717;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 341  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867717;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 342  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867718;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 342  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867718;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 345  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867727;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 345  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867727;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 346  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867728;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 346  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867728;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 349  Schema:   QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000489  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867737;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 349  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867737;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 350  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867738;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 350  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867738;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 353  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867747;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 353  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867747;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 354  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867748;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 354  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867748;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 357  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867757;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 357  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867757;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:15:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 358  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867758;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 358  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867758;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 361  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867767;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 361  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867767;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 362  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867768;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 362  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867768;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 365  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867777;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 365  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867777;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 366  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867778;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 366  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867778;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 369  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867787;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 369  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867787;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 370  Schema:   QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000250  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867788;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 370  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867788;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 376  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867797;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 376  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867797;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 377  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867798;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 377  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867798;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 380  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867807;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 380  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867807;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 381  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867808;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 381  Schema:   QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000464  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867808;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 384  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867817;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 384  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867817;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:16:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 385  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867818;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 385  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867818;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 388  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867827;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 388  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867827;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 389  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867828;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 389  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867828;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 392  Schema:   QC_hit: No
# Query_time: 0.001210  Lock_time: 0.001097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867837;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 392  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867837;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 393  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867838;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 393  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867838;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 396  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867847;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 396  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867847;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 397  Schema:   QC_hit: No
# Query_time: 0.008139  Lock_time: 0.008021  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867848;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 397  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867848;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 400  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867857;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 400  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867857;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:17:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 401  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867858;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 401  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867858;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 404  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867867;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 404  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867867;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 405  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867868;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 405  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867868;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:17:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 408  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867877;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 408  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867877;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:17:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 409  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867878;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 409  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867878;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 412  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867887;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 412  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867887;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 413  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867888;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 413  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867888;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 416  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867897;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 416  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867897;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 417  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867898;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 417  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867898;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 420  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867907;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 420  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867907;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 421  Schema:   QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000333  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867908;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 421  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867908;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 424  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867917;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 424  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867917;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 425  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867918;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 425  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867918;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 428  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867927;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 428  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867927;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 429  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867928;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 429  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867928;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 432  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867937;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 432  Schema:   QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000446  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867937;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:18:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 433  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867938;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 433  Schema:   QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000070  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867938;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 436  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867947;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 436  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867947;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 437  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867948;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 437  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867948;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 440  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867957;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 440  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867957;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 441  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867958;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 441  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867958;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 444  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867967;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 444  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867967;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 445  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867968;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 445  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867968;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 448  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867977;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 448  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867977;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:19:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 449  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867978;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 449  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867978;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 452  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867987;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 452  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867987;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 453  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867988;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 453  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867988;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 456  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867997;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 456  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867997;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:19:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 457  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646867998;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 457  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646867998;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 460  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 460  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 461  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868008;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 461  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868008;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 464  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 464  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 465  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868018;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 465  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868018;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 468  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 468  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 469  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000220  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 469  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 472  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 472  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 473  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 473  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 476  Schema:   QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000412  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 476  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 477  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 477  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 480  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 480  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:20:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 481  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 481  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 487  Schema:   QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 487  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 488  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 488  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 491  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 491  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 492  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 492  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 495  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 495  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 496  Schema:   QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000492  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 496  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 499  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 499  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 500  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 500  Schema:   QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000242  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 503  Schema:   QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000277  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 503  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 504  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 504  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000237  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 511  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 511  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:21:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 512  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 512  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 515  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 515  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 516  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 516  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 519  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 519  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 520  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 520  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 523  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 523  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 524  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 524  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 527  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 527  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 528  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 528  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 531  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 531  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 532  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 532  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 535  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 535  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:22:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 536  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 536  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 539  Schema:   QC_hit: No
# Query_time: 0.001236  Lock_time: 0.000625  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 539  Schema:   QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000253  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 540  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 540  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 543  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 543  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 544  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 544  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 547  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 547  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 548  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 548  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 551  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 551  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 552  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 552  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 555  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868227;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 555  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868227;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 556  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868228;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 556  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868228;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 559  Schema:   QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868237;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 559  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868237;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:23:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 560  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868238;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 560  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868238;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 563  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868247;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 563  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868247;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 564  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868248;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 564  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868248;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 567  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868257;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 567  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868257;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 568  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868258;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 568  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868258;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 571  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868267;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 571  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868267;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 572  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868268;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 572  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868268;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 575  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868277;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 575  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868277;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 576  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868278;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 576  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868278;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 579  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868287;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 579  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868287;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 580  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868288;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 580  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868288;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 583  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868297;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 583  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868297;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:24:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 584  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868298;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 584  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868298;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 587  Schema:   QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000564  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868307;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 587  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868307;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:25:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 588  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868308;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 588  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868308;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:25:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 591  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868317;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 591  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868317;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 592  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868318;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 592  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868318;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2022-03-09 23:25:23 6 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 220309 23:25:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 595  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868327;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 595  Schema:   QC_hit: No
# Query_time: 0.008230  Lock_time: 0.008141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868327;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 596  Schema:   QC_hit: No
# Query_time: 0.072182  Lock_time: 0.072074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868328;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 596  Schema:   QC_hit: No
# Query_time: 0.053615  Lock_time: 0.053531  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868328;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2022-03-09 23:25:34 6 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2022-03-09 23:25:34 597 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2022-03-09 23:25:34 8 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2022-03-09 23:25:34 8 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
2022-03-09 23:25:34 8 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 220309 23:25:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 603  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868337;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 603  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868337;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 604  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868338;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 604  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868338;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 607  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868347;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 607  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868347;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 608  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868348;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 608  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868348;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 611  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868357;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 611  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868357;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:25:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 612  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868358;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 612  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868358;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 619  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868367;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 619  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868367;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 620  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868368;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 620  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868368;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2022-03-09 23:26:12 621 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 220309 23:26:13
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.010822  Lock_time: 0.001235  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001224  Lock_time: 0.000237  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009229  Lock_time: 0.000314  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000090  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000077  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009775  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.002482  Lock_time: 0.001592  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000996  Lock_time: 0.000129  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.010829  Lock_time: 0.000225  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001183  Lock_time: 0.000219  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008494  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group_permissions';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group_permissions';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000124  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group_permissions';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009253  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000103  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000116  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000113  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000110  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000114  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000715  Lock_time: 0.000114  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.010910  Lock_time: 0.000210  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_groups';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001206  Lock_time: 0.000194  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_groups';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000198  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_groups';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.012021  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_user_permissions';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000186  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_user_permissions';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001151  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868373;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_user_permissions';
# Time: 220309 23:26:14
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008423  Lock_time: 0.000136  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000105  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000110  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000104  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000106  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000122  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000103  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868374;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.001298  Lock_time: 0.001026  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 92
use nfvo;
SET timestamp=1646868374;
SELECT event_name FROM information_schema.events LIMIT 1;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868374;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000193  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 124
SET timestamp=1646868374;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='nfvo' LIMIT 1);
# Time: 220309 23:26:15
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.005268  Lock_time: 0.005183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.050829  Lock_time: 0.049248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000327  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000149  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 124
SET timestamp=1646868375;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='nfvo' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.021167  Lock_time: 0.020569  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 57
SET timestamp=1646868375;
SELECT SUM(found) FROM ((SELECT 1 as found FROM information_schema.tables WHERE table_schema='nfvo') UNION ALL (SELECT 1 as found FROM information_schema.views WHERE table_schema='nfvo' LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.table_constraints WHERE table_schema='nfvo' LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.triggers WHERE event_object_schema='nfvo'  LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.routines WHERE routine_schema='nfvo' LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.events WHERE event_schema='nfvo' LIMIT 1)) as all_found;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000579  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 124
SET timestamp=1646868375;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='nfvo' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.023523  Lock_time: 0.023407  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.003027  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.010254  Lock_time: 0.000210  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.006477  Lock_time: 0.005825  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000812  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000180  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000827  Lock_time: 0.000179  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_CPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.019192  Lock_time: 0.018632  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.010470  Lock_time: 0.000106  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_defPackage_mapping';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000138  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_defPackage_mapping';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000757  Lock_time: 0.000147  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_defPackage_mapping';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000099  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_defPackage_mapping';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000094  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 124
use nfvo;
SET timestamp=1646868375;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='nfvo' LIMIT 1);
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.025862  Lock_time: 0.017582  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.019847  Lock_time: 0.013615  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.029163  Lock_time: 0.022896  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.001138  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.027684  Lock_time: 0.021831  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000103  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000071  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000082  Lock_time: 0.000030  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 926
SET timestamp=1646868375;
SELECT * FROM `nfvo`.`flyway_schema_history` FOR UPDATE;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001158  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000213  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000070  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
use nfvo;
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000924  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
SET timestamp=1646868375;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'nfvo') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.006724  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use nfvo;
SET timestamp=1646868375;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use vfcnfvolcm;
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000219  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001115  Lock_time: 0.000236  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000193  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_FPINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.007396  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_inputParam_mapping';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000731  Lock_time: 0.000147  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_inputParam_mapping';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_inputParam_mapping';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_inputParam_mapping';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.006928  Lock_time: 0.000289  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000149  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000101  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000096  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000147  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000752  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000911  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.006362  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001467  Lock_time: 0.000930  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_JOB_STATUS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.015915  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000116  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000096  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000085  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000098  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.000107  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000129  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000132  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000743  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000097  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000162  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000140  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000142  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000748  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000103  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000222  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000837  Lock_time: 0.000205  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000768  Lock_time: 0.000192  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000751  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008045  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000113  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000777  Lock_time: 0.000118  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000099  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000200  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001230  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001228  Lock_time: 0.000215  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001184  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.007316  Lock_time: 0.000231  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000136  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000115  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000118  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000116  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000756  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000162  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSPACKAGE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008449  Lock_time: 0.000214  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000213  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000972  Lock_time: 0.000242  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000212  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000192  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000875  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000201  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001116  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000235  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000946  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000999  Lock_time: 0.000197  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000233  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001006  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000172  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NSINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009574  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000173  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000855  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000721  Lock_time: 0.000146  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000191  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000212  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000172  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000186  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000837  Lock_time: 0.000228  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868375;
SELECT engine FROM information_schema.tables WHERE table_name = 'NSLCMOPOCCS';
# Time: 220309 23:26:16
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008296  Lock_time: 0.000149  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000142  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000172  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000138  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000197  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000182  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_OOF_DATA';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009529  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000905  Lock_time: 0.000172  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000139  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000190  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000910  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000145  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PNFINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008224  Lock_time: 0.000170  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000179  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000203  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000878  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000159  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000195  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000228  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000193  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000140  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000360  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000805  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000126  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_PORTINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.007297  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000139  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000119  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000116  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 't_lcm_servicebaseinfo';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009983  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000876  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000159  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000138  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000138  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000132  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000123  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000941  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000108  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000848  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_SUBSCRIPTION';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009377  Lock_time: 0.000216  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000975  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000146  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000118  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000805  Lock_time: 0.000152  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000147  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000138  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000827  Lock_time: 0.000123  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000124  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VLINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.007786  Lock_time: 0.000124  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000142  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000172  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000756  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000116  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000720  Lock_time: 0.000112  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000116  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VMINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009124  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFCINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFCINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000115  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFCINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000115  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFCINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFCINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009830  Lock_time: 0.000159  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000140  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000129  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000129  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000771  Lock_time: 0.000127  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000127  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_VNFFGINST';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009093  Lock_time: 0.000113  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000132  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000103  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000748  Lock_time: 0.000127  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000991  Lock_time: 0.000173  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001061  Lock_time: 0.000200  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000159  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_NFPACKAGEFILE';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.008722  Lock_time: 0.000239  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_WF_PLAN';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000851  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_WF_PLAN';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000146  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_WF_PLAN';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.001502  Lock_time: 0.000149  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_WF_PLAN';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000145  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVO_WF_PLAN';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.009943  Lock_time: 0.000960  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_session';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_session';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868376;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_session';
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000080  Rows_sent: 16  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 789
SET timestamp=1646868376;
SELECT `django_migrations`.`app`, `django_migrations`.`name` FROM `django_migrations`;
# Time: 220309 23:26:17
# User@Host: vfcnfvolcm[vfcnfvolcm] @  [10.242.234.9]
# Thread_id: 622  Schema: vfcnfvolcm  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 24
# Rows_affected: 0  Bytes_sent: 201
SET timestamp=1646868377;
SELECT `auth_permission`.`content_type_id`, `auth_permission`.`codename` FROM `auth_permission` INNER JOIN `django_content_type` ON (`auth_permission`.`content_type_id` = `django_content_type`.`id`) WHERE `auth_permission`.`content_type_id` IN (19, 22, 25, 28, 31, 34, 37, 40, 43, 46, 49, 52, 55, 58, 61, 64, 67, 70, 73, 76, 79, 82) ORDER BY `django_content_type`.`app_label` ASC, `django_content_type`.`model` ASC, `auth_permission`.`codename` ASC;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 629  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868377;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 629  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868377;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: so_admin[so_admin] @  [10.242.250.96]
# Thread_id: 623  Schema: nfvo  QC_hit: No
# Query_time: 0.004988  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 6
# Rows_affected: 0  Bytes_sent: 92
use nfvo;
SET timestamp=1646868377;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# Time: 220309 23:26:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 630  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868378;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 630  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868378;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
2022-03-09 23:26:20 8 [Warning] 'proxies_priv' entry '@% root@dev-mariadb-galera-0' ignored in --skip-name-resolve mode.
# Time: 220309 23:26:21
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007761  Lock_time: 0.001041  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
use gvnfm;
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000129  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_migrations';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.009337  Lock_time: 0.000265  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000132  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_content_type';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007918  Lock_time: 0.000184  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.000254  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000203  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001187  Lock_time: 0.000225  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868381;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_permission';
# Time: 220309 23:26:22
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007819  Lock_time: 0.000197  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000246  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.008663  Lock_time: 0.000201  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group_permissions';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group_permissions';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_group_permissions';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007294  Lock_time: 0.000191  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000195  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000921  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000139  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001063  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000188  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000173  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007998  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_groups';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_groups';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_groups';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007109  Lock_time: 0.000152  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_user_permissions';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000145  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_user_permissions';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'auth_user_user_permissions';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.006738  Lock_time: 0.000159  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000150  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000778  Lock_time: 0.000139  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000136  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868382;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_admin_log';
# Time: 220309 23:26:23
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.009175  Lock_time: 0.000286  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000224  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001344  Lock_time: 0.000470  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000199  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000196  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000898  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000837  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000205  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'CPINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.006847  Lock_time: 0.000100  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000893  Lock_time: 0.000216  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000708  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000721  Lock_time: 0.000162  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000752  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000765  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000182  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000771  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'FLAVOURINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.006388  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000199  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000152  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000162  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000721  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000099  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000107  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000583  Lock_time: 0.000099  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007643  Lock_time: 0.000197  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000187  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000682  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000136  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'JOB_STATUS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.006939  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000098  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000094  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000083  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000126  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000852  Lock_time: 0.000095  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000122  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000097  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000621  Lock_time: 0.000122  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000108  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000131  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000124  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000127  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000126  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000127  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.009048  Lock_time: 0.000249  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001190  Lock_time: 0.000214  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001066  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000958  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001027  Lock_time: 0.000197  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000905  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000184  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000916  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000893  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000851  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000180  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.006976  Lock_time: 0.000275  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000159  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000685  Lock_time: 0.000118  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000149  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000820  Lock_time: 0.000198  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'NFVOREGINFO';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007545  Lock_time: 0.000194  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000146  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000142  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000864  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000126  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.000233  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001217  Lock_time: 0.000230  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001134  Lock_time: 0.000230  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001186  Lock_time: 0.000246  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001222  Lock_time: 0.000235  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001874  Lock_time: 0.001064  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001184  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001137  Lock_time: 0.000241  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001083  Lock_time: 0.000223  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001035  Lock_time: 0.000228  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000213  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.006421  Lock_time: 0.000222  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001248  Lock_time: 0.000232  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001186  Lock_time: 0.000229  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001057  Lock_time: 0.000220  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001135  Lock_time: 0.000229  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001162  Lock_time: 0.000218  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.000243  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001288  Lock_time: 0.000323  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'PORTINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.008913  Lock_time: 0.000227  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001080  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001192  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001270  Lock_time: 0.000190  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000946  Lock_time: 0.000237  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000170  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000864  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000228  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000206  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000984  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868383;
SELECT engine FROM information_schema.tables WHERE table_name = 'STORAGEINST';
# Time: 220309 23:26:24
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.008753  Lock_time: 0.000222  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.002726  Lock_time: 0.001944  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000915  Lock_time: 0.000219  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000222  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000260  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000216  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000250  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000228  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000936  Lock_time: 0.000172  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000206  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000903  Lock_time: 0.000230  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000209  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000147  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000842  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBNETWORKINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.009147  Lock_time: 0.000219  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001164  Lock_time: 0.000198  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000179  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000940  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000145  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001194  Lock_time: 0.000196  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'SUBSCRIPTION';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.009137  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001042  Lock_time: 0.000186  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001031  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000991  Lock_time: 0.000178  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001064  Lock_time: 0.000198  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001086  Lock_time: 0.000260  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VLINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.009879  Lock_time: 0.000208  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000975  Lock_time: 0.000120  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000858  Lock_time: 0.000127  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001068  Lock_time: 0.000228  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000950  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000913  Lock_time: 0.000207  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000175  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.002133  Lock_time: 0.001453  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000855  Lock_time: 0.000140  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000229  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000112  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000136  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000124  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VMINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007929  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFCINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000731  Lock_time: 0.000120  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFCINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFCINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFCINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFCINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000167  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFCINST';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007860  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000169  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000140  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000153  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000812  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000147  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000839  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000165  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000155  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000157  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000198  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'VNFLCMOPOCCS';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.007691  Lock_time: 0.000292  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_session';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000261  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_session';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000246  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 102
SET timestamp=1646868384;
SELECT engine FROM information_schema.tables WHERE table_name = 'django_session';
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000207  Rows_sent: 16  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 779
SET timestamp=1646868384;
SELECT `django_migrations`.`app`, `django_migrations`.`name` FROM `django_migrations`;
# User@Host: gvnfm[gvnfm] @  [10.242.26.21]
# Thread_id: 631  Schema: gvnfm  QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 21
# Rows_affected: 0  Bytes_sent: 191
SET timestamp=1646868384;
SELECT `auth_permission`.`content_type_id`, `auth_permission`.`codename` FROM `auth_permission` INNER JOIN `django_content_type` ON (`auth_permission`.`content_type_id` = `django_content_type`.`id`) WHERE `auth_permission`.`content_type_id` IN (34, 37, 40, 43, 46, 49, 19, 52, 22, 55, 25, 58, 28, 61, 31) ORDER BY `django_content_type`.`app_label` ASC, `django_content_type`.`model` ASC, `auth_permission`.`codename` ASC;
# Time: 220309 23:26:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 637  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868387;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 637  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868387;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 638  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868388;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 638  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868388;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 641  Schema:   QC_hit: No
# Query_time: 0.002008  Lock_time: 0.001950  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868397;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 641  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868397;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 642  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868398;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 642  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868398;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:44
# User@Host: so_user[so_user] @  [10.242.250.97]
# Thread_id: 643  Schema: requestdb  QC_hit: No
# Query_time: 0.001920  Lock_time: 0.000403  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 92
use requestdb;
SET timestamp=1646868404;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# Time: 220309 23:26:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 651  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868407;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 651  Schema:   QC_hit: No
# Query_time: 0.002898  Lock_time: 0.002830  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868407;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 652  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868408;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 652  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868408;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 655  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868417;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 655  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868417;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:26:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 656  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868418;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 656  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868418;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 659  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868427;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 659  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868427;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 660  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868428;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 660  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868428;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 663  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868437;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 663  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868437;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 664  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868438;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 664  Schema:   QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000265  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868438;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 667  Schema:   QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868447;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 667  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868447;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 668  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868448;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 668  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868448;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 673  Schema:   QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000276  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868457;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 673  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000258  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868457;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:27:38
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002068  Lock_time: 0.001841  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 63
use vid_openecomp_epsdk;
SET timestamp=1646868458;
SELECT COUNT(*) FROM vid_openecomp_epsdk.DATABASECHANGELOGLOCK;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868458;
DELETE FROM vid_openecomp_epsdk.DATABASECHANGELOGLOCK;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 674  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868458;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 674  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868458;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002347  Lock_time: 0.000540  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 521
SET timestamp=1646868459;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'vid_openecomp_epsdk') AND (TABLE_NAME = 'DATABASECHANGELOG') AND TABLE_TYPE IN ('BASE TABLE') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001791  Lock_time: 0.001663  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 63
SET timestamp=1646868459;
SELECT COUNT(*) FROM vid_openecomp_epsdk.DATABASECHANGELOG;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 1355
SET timestamp=1646868459;
SELECT * FROM vid_openecomp_epsdk.DATABASECHANGELOG ORDER BY DATEEXECUTED ASC, ORDEREXECUTED ASC;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000098  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 63
SET timestamp=1646868459;
SELECT COUNT(*) FROM vid_openecomp_epsdk.DATABASECHANGELOGLOCK;
# Time: 220309 23:27:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001303  Lock_time: 0.001177  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 72
SET timestamp=1646868462;
SELECT MAX(ORDEREXECUTED) FROM vid_openecomp_epsdk.DATABASECHANGELOG;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002153  Lock_time: 0.002094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_datasource`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001562  Lock_time: 0.001486  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_role_function`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000092  Lock_time: 0.000039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_restricted_url`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001404  Lock_time: 0.001371  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_tab_selected`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000079  Lock_time: 0.000041  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_tab`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001689  Lock_time: 0.001654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_function`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002138  Lock_time: 0.002054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_alert_method`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001806  Lock_time: 0.001757  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_activity`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001613  Lock_time: 0.001576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_call_times`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001566  Lock_time: 0.001531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_country`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001475  Lock_time: 0.001441  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_menu_set`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001548  Lock_time: 0.001512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_priority`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001638  Lock_time: 0.001603  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_state`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001439  Lock_time: 0.001406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
DELETE FROM `fn_lu_tab_set`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 1  Bytes_sent: 52
SET timestamp=1646868462;
update fn_menu set active_yn = 'Y' where label = 'Admin';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 1  Bytes_sent: 52
SET timestamp=1646868462;
update fn_menu set active_yn = 'Y' where label = 'Root';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 1  Bytes_sent: 52
SET timestamp=1646868462;
update fn_menu set action = 'admin' where label = 'Admin';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001681  Lock_time: 0.001574  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
delete from `vid_openecomp_epsdk`.`vid_service_info`;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868462;
delete from `vid_openecomp_epsdk`.`vid_job`;
# Time: 220309 23:27:43
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.108302  Lock_time: 0.031621  Rows_sent: 0  Rows_examined: 47
# Rows_affected: 0  Bytes_sent: 92
use camundabpmn;
SET timestamp=1646868463;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001536  Lock_time: 0.001415  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 52
use vid_openecomp_epsdk;
SET timestamp=1646868463;
UPDATE `vid_openecomp_epsdk`.`vid_service_info` SET `IS_A_LA_CARTE` = 0 WHERE ISNULL(`IS_A_LA_CARTE`);
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002253  Lock_time: 0.002085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 52
SET timestamp=1646868463;
UPDATE `vid_openecomp_epsdk`.`vid_service_info` SET `ACTION` = 'INSTANTIATE' where ISNULL(ACTION);
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 17
# Rows_affected: 1  Bytes_sent: 52
SET timestamp=1646868463;
UPDATE `vid_openecomp_epsdk`.`fn_menu` SET `ACTION` = 'welcome' WHERE `ACTION` = 'welcome.htm';
# Time: 220309 23:27:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001682  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 45
# Rows_affected: 45  Bytes_sent: 54
SET timestamp=1646868464;
UPDATE `vid_openecomp_epsdk`.`fn_function` SET `type` = 'menu', `action` = '*';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 45
# Rows_affected: 1  Bytes_sent: 52
SET timestamp=1646868464;
UPDATE `vid_openecomp_epsdk`.`fn_function` SET `type` = 'url' WHERE `FUNCTION_NAME`='Login';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 17
# Rows_affected: 1  Bytes_sent: 52
SET timestamp=1646868464;
UPDATE `vid_openecomp_epsdk`.`fn_menu` SET `LABEL`='Browse SDC Service Models' WHERE `LABEL`='Browse ASDC Service Models';
# Time: 220309 23:27:47
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 682  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868467;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 682  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868467;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:48
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001663  Lock_time: 0.001456  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 866
SET timestamp=1646868468;
SELECT schema_id,datasource_type,connection_url,user_name,password,driver_class,min_pool_size,max_pool_size,idle_connection_test_period FROM schema_info;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 683  Schema:   QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868468;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 683  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868468;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868470;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:49.621517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868470;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:49.621573' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868471;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:50.590808' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868471;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868472;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:51.590671' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868472;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:51.59211' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001398  Lock_time: 0.001180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868473;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868473;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:52.591672' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001391  Lock_time: 0.001119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868474;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868475;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:54.590373' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868475;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:54.591574' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868476;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868476;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:55.593541' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:27:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868477;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 686  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868477;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 686  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868477;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:27:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 687  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868478;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 687  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868478;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001484  Lock_time: 0.001278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868478;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001234  Lock_time: 0.000477  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868478;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001690  Lock_time: 0.000480  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 560
use camundabpmn;
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_RU_EXECUTION'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000214  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 559
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_HI_PROCINST'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001101  Lock_time: 0.000239  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 555
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_ID_USER'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001090  Lock_time: 0.000166  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 559
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_RE_CASE_DEF'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000195  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 559
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_HI_CASEINST'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000215  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_RE_DECISION_DEF'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000981  Lock_time: 0.000232  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 558
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_HI_DECINST'  AND TABLE_TYPE IN ('BASE TABLE','SYSTEM VERSIONED') ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.003800  Lock_time: 0.000518  Rows_sent: 26  Rows_examined: 52
# Rows_affected: 0  Bytes_sent: 3734
SET timestamp=1646868478;
SELECT TABLE_SCHEMA TABLE_CAT, NULL TABLE_SCHEM, TABLE_NAME, COLUMN_NAME, CASE data_type WHEN 'bit' THEN -7 WHEN 'tinyblob' THEN -3 WHEN 'mediumblob' THEN -4 WHEN 'longblob' THEN -4 WHEN 'blob' THEN -4 WHEN 'tinytext' THEN 12 WHEN 'mediumtext' THEN -1 WHEN 'longtext' THEN -1 WHEN 'text' THEN -1 WHEN 'date' THEN 91 WHEN 'datetime' THEN 93 WHEN 'decimal' THEN 3 WHEN 'double' THEN 8 WHEN 'enum' THEN 12 WHEN 'float' THEN 7 WHEN 'int' THEN IF( COLUMN_TYPE like '%unsigned%', 4,4) WHEN 'bigint' THEN -5 WHEN 'mediumint' THEN 4 WHEN 'null' THEN 0 WHEN 'set' THEN 12 WHEN 'smallint' THEN IF( COLUMN_TYPE like '%unsigned%', 5,5) WHEN 'varchar' THEN 12 WHEN 'varbinary' THEN -3 WHEN 'char' THEN 1 WHEN 'binary' THEN -2 WHEN 'time' THEN 92 WHEN 'timestamp' THEN 93 WHEN 'tinyint' THEN IF(COLUMN_TYPE like 'tinyint(1)%',-7,-6)  WHEN 'year' THEN 91 ELSE 1111 END  DATA_TYPE, IF(COLUMN_TYPE like 'tinyint(1)%', 'BIT',  UCASE(IF( COLUMN_TYPE LIKE '%(%)%', CONCAT(SUBSTRING( COLUMN_TYPE,1, LOCATE('(',COLUMN_TYPE) - 1 ), SUBSTRING(COLUMN_TYPE ,1+locate(')', COLUMN_TYPE))), COLUMN_TYPE))) TYPE_NAME,  CASE DATA_TYPE  WHEN 'time' THEN IF(DATETIME_PRECISION = 0, 10, CAST(11 + DATETIME_PRECISION as signed integer))  WHEN 'date' THEN 10  WHEN 'datetime' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  WHEN 'timestamp' THEN IF(DATETIME_PRECISION = 0, 19, CAST(20 + DATETIME_PRECISION as signed integer))  ELSE   IF(NUMERIC_PRECISION IS NULL, LEAST(CHARACTER_MAXIMUM_LENGTH,2147483647), NUMERIC_PRECISION)  END COLUMN_SIZE, 65535 BUFFER_LENGTH,  CONVERT (CASE DATA_TYPE WHEN 'year' THEN NUMERIC_SCALE WHEN 'tinyint' THEN 0 ELSE NUMERIC_SCALE END, UNSIGNED INTEGER) DECIMAL_DIGITS, 10 NUM_PREC_RADIX, IF(IS_NULLABLE = 'yes',1,0) NULLABLE,COLUMN_COMMENT REMARKS, COLUMN_DEFAULT COLUMN_DEF, 0 SQL_DATA_TYPE, 0 SQL_DATETIME_SUB,   LEAST(CHARACTER_OCTET_LENGTH,2147483647) CHAR_OCTET_LENGTH, ORDINAL_POSITION, IS_NULLABLE, NULL SCOPE_CATALOG, NULL SCOPE_SCHEMA, NULL SCOPE_TABLE, NULL SOURCE_DATA_TYPE, IF(EXTRA = 'auto_increment','YES','NO') IS_AUTOINCREMENT,  IF(EXTRA in ('VIRTUAL', 'PERSISTENT', 'VIRTUAL GENERATED', 'STORED GENERATED') ,'YES','NO') IS_GENERATEDCOLUMN  FROM INFORMATION_SCHEMA.COLUMNS  WHERE (ISNULL(database()) OR (TABLE_SCHEMA = database())) AND TABLE_NAME LIKE 'ACT_RU_JOB'  ORDER BY TABLE_CAT, TABLE_SCHEM, TABLE_NAME, ORDINAL_POSITION;
# Time: 220309 23:27:59
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.005554  Lock_time: 0.001109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 810
SET timestamp=1646868479;
select B.*
    from ACT_GE_BYTEARRAY B
    inner join
      (select B.NAME_, MAX(D.DEPLOY_TIME_) DEPLOY_TIME_
      from ACT_GE_BYTEARRAY B
        inner join ACT_RE_DEPLOYMENT D
        on B.DEPLOYMENT_ID_ = D.ID_
      where D.NAME_ = 'SpringAutoDeployment'
        and
         
          (D.SOURCE_ is null or
         
          D.SOURCE_ = 'process application'
         
          )
         
       
        and B.NAME_ in 
         (  
          'DoCreateVnfAndModulesRollback.bpmn'
         , 
          'DeleteVfModuleVolumeInfraV1.bpmn'
         , 
          'VNFUpgradePreCheckActivity.bpmn'
         , 
          'CreateActivateSDNCResource.bpmn'
         , 
          'ConfirmVolumeGroupName.bpmn'
         , 
          'VNFCheckClosedLoopDisabledFlagActivity.bpmn'
         , 
          'AppCClient.bpmn'
         , 
          'DistributeTrafficCheckActivity.bpmn'
         , 
          'DoDeleteResourcesV1.bpmn'
         , 
          'ActivateNetworkCollectionBB.bpmn'
         , 
          'VNFLockActivity.bpmn'
         , 
          'DoAllocateCoreNonSharedSlice.bpmn'
         , 
          'DoUnderlayVpnOperation.bpmn'
         , 
          'VNFUnsetClosedLoopDisabledFlagActivity.bpmn'
         , 
          'DoCloudLeasedLineCreate.bpmn'
         , 
          'MonitorVnfmDeleteJob.bpmn'
         , 
          'DeactivateVolumeGroupBB.bpmn'
         , 
          'DeleteVnfInfra.bpmn'
         , 
          'DeActivateSDNCNetworkResource.bpmn'
         , 
          'ManualHandling.bpmn'
         , 
          'DeleteVolumeGroupBB.bpmn'
         , 
          'CompleteMsoProcess.bpmn'
         , 
          'DoModifyCoreNSSI.bpmn'
         , 
          'CreateAndActivatePnfResource.bpmn'
         , 
          'DoCloudLeasedLineDelete.bpmn'
         , 
          'CreateVcpeResCustServiceV2.bpmn'
         , 
          'DoDeleteVnf.bpmn'
         , 
          'UpdateNetworkInstance.bpmn'
         , 
          'DoDeleteVfModule.bpmn'
         , 
          'PauseForManualTaskRainyDay.bpmn'
         , 
          'ActivateSliceSubnet.bpmn'
         , 
          'SetRefactorServiceDecomp.bpmn'
         , 
          'DoCreateVfModule.bpmn'
         , 
          'DoAllocateTransportNSSI.bpmn'
         , 
          'DoCreateVnfAndModules.bpmn'
         , 
          'DeleteCommunicationService.bpmn'
         , 
          'CreateVcpeResCustService.bpmn'
         , 
          'DoCreateE2EServiceInstance.bpmn'
         , 
          'DeleteVFCNSResource.bpmn'
         , 
          'DeactivateNetworkBB.bpmn'
         , 
          'GenericPnfSoftwareUpgrade.bpmn'
         , 
          'ActivateSDNCNetworkResource.bpmn'
         , 
          'RollbackVnf.bpmn'
         , 
          'CreateVfModuleVolumeInfraV1.bpmn'
         , 
          'VNFSetInMaintFlagActivity.bpmn'
         , 
          'AssignVnfBB.bpmn'
         , 
          'DoCreateVfModuleVolumeRollback.bpmn'
         , 
          'CreateSliceService.bpmn'
         , 
          'VNFUpgradePostCheckActivity.bpmn'
         , 
          'DoCreateAllottedResourceBRG.bpmn'
         , 
          'AssignVolumeGroupBB.bpmn'
         , 
          'GenericControllerExecution.bpmn'
         , 
          'DeleteSliceService.bpmn'
         , 
          'HandlePNF.bpmn'
         , 
          'DoDeleteServiceInstance.bpmn'
         , 
          'ActivateVnfBB.bpmn'
         , 
          'UpdateVnfInfra.bpmn'
         , 
          'DoCompareModelVersions.bpmn'
         , 
          'DoCreateVFCNetworkServiceInstance.bpmn'
         , 
          'ConfigDeployVnfBB.bpmn'
         , 
          'ReplaceVnfInfra.bpmn'
         , 
          'DistributeTrafficActivity.bpmn'
         , 
          'AAIUnsetVnfInMaintBB.bpmn'
         , 
          'DoCreateVfModuleRollback.bpmn'
         , 
          'ActivatePnfBB.bpmn'
         , 
          'CreateVfModuleInfra.bpmn'
         , 
          'GenericVnfHealthCheckBB.bpmn'
         , 
          'CreateAAIVfModuleVolumeGroup.bpmn'
         , 
          'DoModifyAccessNSSI.bpmn'
         , 
          'DeactivateVfModuleBB.bpmn'
         , 
          'CreateNetworkBB.bpmn'
         , 
          'CreateCustomerBB.bpmn'
         , 
          'DoDeleteVnfAndModules.bpmn'
         , 
          'DoCustomDeleteE2EServiceInstance.bpmn'
         , 
          'CreateVcpeResCustService_simplified.bpmn'
         , 
          'VNFSnapShotActivity.bpmn'
         , 
          'DeleteNetworkCollectionBB.bpmn'
         , 
          'ActivateVolumeGroupBB.bpmn'
         , 
          'CreateAAIVfModule.bpmn'
         , 
          'DoCreateAllottedResourceTXCRollback.bpmn'
         , 
          'GenericPnfSWUPDownload.bpmn'
         , 
          'UnassignVolumeGroupBB.bpmn'
         , 
          'GenerateVfModuleName.bpmn'
         , 
          'DecomposeService.bpmn'
         , 
          'CreateSDNCNetworkResource.bpmn'
         , 
          'DoScaleVFCServiceInstance.bpmn'
         , 
          'DoCreateResources.bpmn'
         , 
          'DeleteAAIVfModule.bpmn'
         , 
          'DoActivateSliceService.bpmn'
         , 
          'UnassignServiceInstanceBB.bpmn'
         , 
          'CreateVFCNSResource.bpmn'
         , 
          'DoCreateE2EServiceInstanceV2.bpmn'
         , 
          'UpdateNetworkBB.bpmn'
         , 
          'DoCreateSliceServiceInstance.bpmn'
         , 
          'VNFQuiesceTrafficActivity.bpmn'
         , 
          'Create3rdONAPE2EServiceInstance.bpmn'
         , 
          'ConfigurePnfResource.bpmn'
         , 
          'DoCreateNetworkInstanceRollback.bpmn'
         , 
          'DoDeleteE2EServiceInstance.bpmn'
         , 
          'DoDeleteAllottedResourceTXC.bpmn'
         , 
          'UpdateVfModuleInfra.bpmn'
         , 
          'DoAllocateNSSI.bpmn'
         , 
          'ConfigAssignVnfBB.bpmn'
         , 
          'ActivateCommunicationService.bpmn'
         , 
          'DoCreateNetworkInstance.bpmn'
         , 
          'DeactivateServiceInstanceBB.bpmn'
         , 
          'ConfigurationScaleOutBB.bpmn'
         , 
          'NetworkAdapter.bpmn'
         , 
          'MonitorVnfmDeleteNodeStatus.bpmn'
         , 
          'FalloutHandler.bpmn'
         , 
          'ReceiveWorkflowMessage.bpmn'
         , 
          'DoUpdateVfModule.bpmn'
         , 
          'DoCompareModelofE2EServiceInstance.bpmn'
         , 
          'CreateGenericALaCarteServiceInstance.bpmn'
         , 
          'VNFStartActivity.bpmn'
         , 
          'DoDeleteVfModuleVolumeV2.bpmn'
         , 
          'CreateNetworkCollectionBB.bpmn'
         , 
          'DeactivateVnfBB.bpmn'
         , 
          'DoCreateSliceServiceOption.bpmn'
         , 
          'VNFUnsetInMaintFlagActivity.bpmn'
         , 
          'DoUpdateNetworkInstance.bpmn'
         , 
          'DoDeallocateCoreNSSI.bpmn'
         , 
          'DoDeleteSliceService.bpmn'
         , 
          'CreateVfModuleBB.bpmn'
         , 
          'MonitorVnfmCreateNodeStatus.bpmn'
         , 
          'AssignServiceInstanceBB.bpmn'
         , 
          'HandleOrchestrationTask.bpmn'
         , 
          'DeleteDeviceResource.bpmn'
         , 
          'SDNCHandler.bpmn'
         , 
          'DeleteVfModuleBB.bpmn'
         , 
          'UpdateVfModuleVolumeInfraV1.bpmn'
         , 
          'VNFResumeTrafficActivity.bpmn'
         , 
          'DoCreateServiceInstanceRollback.bpmn'
         , 
          'DeleteVcpeResCustService.bpmn'
         , 
          'VNFSetClosedLoopDisabledFlagActivity.bpmn'
         , 
          'VnfConfigUpdate.bpmn'
         , 
          'AAICheckVnfInMaintBB.bpmn'
         , 
          'DoAllocateCoreSharedSlice.bpmn'
         , 
          'VNFHealthCheckActivity.bpmn'
         , 
          'UnassignVnfBB.bpmn'
         , 
          'EtsiVnfInstantiateBB.bpmn'
         , 
          'DoModifyTransportNSSI.bpmn'
         , 
          'UnassignNetworkBB.bpmn'
         , 
          'ActivateVfModuleBB.bpmn'
         , 
          'RainyDayHandler.bpmn'
         , 
          'AbstractCDSProcessingBB.bpmn'
         , 
          'DoAllocateAccessNSSI.bpmn'
         , 
          'Homing.bpmn'
         , 
          'CompareModelofE2EServiceInstance.bpmn'
         , 
          'DoDeallocateAccessNSSI.bpmn'
         , 
          'VNFUnlockActivity.bpmn'
         , 
          'DoCloudLeasedLineModify.bpmn'
         , 
          'Orchestration.bpmn'
         , 
          'DoUpdateE2EServiceInstanceRollback.bpmn'
         , 
          'DeleteCustomE2EServiceInstance.bpmn'
         , 
          'SDNCAdapterV1.bpmn'
         , 
          'GenericControllerExecutionDE.bpmn'
         , 
          'DeactivatePnfBB.bpmn'
         , 
          'ModifyServiceIntentInstance.bpmn'
         , 
          'CreateVnfInfra.bpmn'
         , 
          'DoDeallocateTransportNSSI.bpmn'
         , 
          'WaitForPnfReadyBB.bpmn'
         , 
          'DoCreateE2ENetworkInstance.bpmn'
         , 
          'AssignVfModuleBB.bpmn'
         , 
          'UnassignVfModuleBB.bpmn'
         , 
          'DeAllocateSliceSubnet.bpmn'
         , 
          'UpdateAAIVfModule.bpmn'
         , 
          'EtsiVnfDeleteBB.bpmn'
         , 
          'DoCreateAllottedResourceTXC.bpmn'
         , 
          'DoActivateTransportNSSI.bpmn'
         , 
          'ChangeModelVnfBB.bpmn'
         , 
          'NetworkAdapterRestV1.bpmn'
         , 
          'DoCompareServiceInstanceData.bpmn'
         , 
          'DoHandleOofRequest.bpmn'
         , 
          'ChangeModelVfModuleBB.bpmn'
         , 
          'AssignNetworkBB.bpmn'
         , 
          'DoCreateE2EServiceInstanceRollback.bpmn'
         , 
          'DeleteSDNCNetworkResource.bpmn'
         , 
          'DoDeallocateNSSI.bpmn'
         , 
          'DoHandleSdnrDmaapRequest.bpmn'
         , 
          'CreateServiceIntentInstance.bpmn'
         , 
          'CheckServiceProcessStatus.bpmn'
         , 
          'ConfirmVolumeGroupTenant.bpmn'
         , 
          'QueryJobStatus.bpmn'
         , 
          'CNFAdapterAsyncCall.bpmn'
         , 
          'DoDeleteVfModuleFromVnf.bpmn'
         , 
          'WorkflowActionBB.bpmn'
         , 
          'VNFCheckInMaintFlagActivity.bpmn'
         , 
          'OpenstackAdapterTask.bpmn'
         , 
          'DoAllocateCoreNSSI.bpmn'
         , 
          'DeleteServiceIntentInstance.bpmn'
         , 
          'CreateDeviceResource.bpmn'
         , 
          'DoDeleteVFCNetworkServiceInstance.bpmn'
         , 
          'DoCreateServiceInstance.bpmn'
         , 
          'DeleteGenericALaCarteServiceInstance.bpmn'
         , 
          'ExecuteBuildingBlock.bpmn'
         , 
          'GenericNotificationService.bpmn'
         , 
          'DoUpdateVnfAndModules.bpmn'
         , 
          'DoUpdateE2EServiceInstance.bpmn'
         , 
          'SDNCAdapterRestV1.bpmn'
         , 
          'UpdateCnfAai.bpmn'
         , 
          'ChangeModelServiceInstanceBB.bpmn'
         , 
          'DoCreateAllottedResourceBRGRollback.bpmn'
         , 
          'DoCreateVfModuleVolumeV2.bpmn'
         , 
          'ModifySliceSubnet.bpmn'
         , 
          'ActivateNetworkBB.bpmn'
         , 
          'ServiceLevelUpgrade.bpmn'
         , 
          'CreateNetworkInstance.bpmn'
         , 
          'GenericPnfHealthCheck.bpmn'
         , 
          'DoDeleteNetworkInstance.bpmn'
         , 
          'HealthCheckBB.bpmn'
         , 
          'DeleteNetworkInstance.bpmn'
         , 
          'DoActivateAccessNSSI.bpmn'
         , 
          'VNFCheckPserversLockedFlagActivity.bpmn'
         , 
          'ControllerExecutionBB.bpmn'
         , 
          'ActivateSliceService.bpmn'
         , 
          'VnfInPlaceUpdate.bpmn'
         , 
          'DeleteNetworkBB.bpmn'
         , 
          'CreateCustomE2EServiceInstance.bpmn'
         , 
          'VNFStopActivity.bpmn'
         , 
          'CreateVolumeGroupBB.bpmn'
         , 
          'UpdateCustomE2EServiceInstance.bpmn'
         , 
          'DoDeleteAllottedResourceBRG.bpmn'
         , 
          'AAISetVnfInMaintBB.bpmn'
         , 
          'DoCreateTnNssiInstance.bpmn'
         , 
          'DoActivateCoreNSSI.bpmn'
         , 
          'ScaleCustomE2EServiceInstance.bpmn'
         , 
          'DeleteVfModuleInfra.bpmn'
         , 
          'MonitorVnfmCreateJob.bpmn'
         , 
          'DoAllocateNSIandNSSI.bpmn'
         , 
          'VnfAdapter.bpmn'
         , 
          'CreateCommunicationService.bpmn'
         , 
          'UpdateAAIGenericVnf.bpmn'
         , 
          'AssignPnfBB.bpmn'
         , 
          'Delete3rdONAPE2EServiceInstance.bpmn'
         , 
          'PauseForManualTaskActivity.bpmn'
         , 
          'DeleteInstanceGroupBB.bpmn'
         , 
          'UpdateVfModuleInfraV2.bpmn'
         , 
          'DoCustomDeleteE2EServiceInstanceV2.bpmn'
         , 
          'ActivateServiceInstanceBB.bpmn'
         , 
          'DoScaleE2EServiceInstance.bpmn'
         , 
          'FlowCompleteActivity.bpmn'
         , 
          'VNFConfigModifyActivity.bpmn'
         , 
          'SDNOVnfHealthCheckBB.bpmn'
         , 
          'PrepareUpdateAAIVfModule.bpmn'
         , 
          'HomingBB.bpmn'
         , 
          'DoCreateVnf.bpmn'
         , 
          'VNFUpgradeBackupActivity.bpmn'
         , 
          'DoModifyRanNfNssi.bpmn'
         , 
          'DoCreateCommunicationService.bpmn'
         , 
          'AllocateSliceSubnet.bpmn'
         , 
          'VNFUpgradeSoftwareActivity.bpmn'
         , 
          'SDNCAdapterRestV2.bpmn'
         ) 
       
      group by B.NAME_) LAST_RESOURCE
      
    on B.NAME_ = LAST_RESOURCE.NAME_
    inner join ACT_RE_DEPLOYMENT D
    on B.DEPLOYMENT_ID_ = D.ID_
    and D.DEPLOY_TIME_ = LAST_RESOURCE.DEPLOY_TIME_ 
    and D.NAME_ = 'SpringAutoDeployment'
    and
     
      (D.SOURCE_ is null or
     
      D.SOURCE_ = 'process application'
     
      )
     
     
     
      and D.TENANT_ID_ is null
     
    order by B.ID_ asc;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868479;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:58.59374' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:59.593284' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868480;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:27:59.592995' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868481;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001032  Lock_time: 0.000802  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:00.593034' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868482;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:01.59124' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000759  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868483;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 92
use requestdb;
SET timestamp=1646868483;
SELECT event_name FROM information_schema.events LIMIT 1;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000237  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868483;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001189  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646868483;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646868483;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000176  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868483;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.005925  Lock_time: 0.005604  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 57
SET timestamp=1646868483;
SELECT SUM(found) FROM ((SELECT 1 as found FROM information_schema.tables WHERE table_schema='requestdb') UNION ALL (SELECT 1 as found FROM information_schema.views WHERE table_schema='requestdb' LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.table_constraints WHERE table_schema='requestdb' LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.triggers WHERE event_object_schema='requestdb'  LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.routines WHERE routine_schema='requestdb' LIMIT 1) UNION ALL (SELECT 1 as found FROM information_schema.events WHERE event_schema='requestdb' LIMIT 1)) as all_found;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000200  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868483;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001050  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 514
SET timestamp=1646868483;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.003926  Lock_time: 0.000384  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868483;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001242  Lock_time: 0.000319  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868483;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868483;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# Time: 220309 23:28:04
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000265  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001416  Lock_time: 0.000308  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000104  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000079  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000093  Lock_time: 0.000035  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 976
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000090  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000221  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000225  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001123  Lock_time: 0.000239  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000094  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000076  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000034  Rows_sent: 1  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 1068
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000077  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000830  Lock_time: 0.000237  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000195  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001344  Lock_time: 0.000262  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000082  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000038  Rows_sent: 2  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 1201
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000084  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000184  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000160  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001613  Lock_time: 0.001483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868484;
delete from infra_active_requests where source != 'VID' and source != 'POLO';
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000073  Lock_time: 0.000033  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 11
SET timestamp=1646868484;
delete from infra_active_requests where request_body like '<%';
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000097  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000098  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000095  Lock_time: 0.000047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000080  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000036  Rows_sent: 3  Rows_examined: 3
# Rows_affected: 0  Bytes_sent: 1312
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000083  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000851  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000242  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.000257  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000090  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000106  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000034  Rows_sent: 4  Rows_examined: 4
# Rows_affected: 0  Bytes_sent: 1440
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000076  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000242  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001663  Lock_time: 0.000240  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000757  Lock_time: 0.000093  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000042  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 1579
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000721  Lock_time: 0.000090  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000216  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001418  Lock_time: 0.000231  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000102  Lock_time: 0.000050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000085  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000038  Rows_sent: 6  Rows_examined: 6
# Rows_affected: 0  Bytes_sent: 1695
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000086  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000206  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.017352  Lock_time: 0.017211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868484;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:03.591417' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.017320  Lock_time: 0.017072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868484;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:03.591865' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000952  Lock_time: 0.000903  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use requestdb;
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001307  Lock_time: 0.000242  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000080  Lock_time: 0.000040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000066  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000031  Rows_sent: 7  Rows_examined: 7
# Rows_affected: 0  Bytes_sent: 1783
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000683  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000233  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000182  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001503  Lock_time: 0.000248  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000097  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000048  Rows_sent: 8  Rows_examined: 8
# Rows_affected: 0  Bytes_sent: 1919
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000099  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000217  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000199  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001590  Lock_time: 0.000242  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000108  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000120  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000040  Rows_sent: 9  Rows_examined: 9
# Rows_affected: 0  Bytes_sent: 2045
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000153  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000223  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001577  Lock_time: 0.000161  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000082  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000038  Rows_sent: 10  Rows_examined: 10
# Rows_affected: 0  Bytes_sent: 2152
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000084  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000909  Lock_time: 0.000229  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001520  Lock_time: 0.000152  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000085  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000075  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000034  Rows_sent: 11  Rows_examined: 11
# Rows_affected: 0  Bytes_sent: 2329
SET timestamp=1646868484;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000103  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868484;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868484;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000092  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868484;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# Time: 220309 23:28:05
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001609  Lock_time: 0.000163  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000091  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000950  Lock_time: 0.000087  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000041  Rows_sent: 12  Rows_examined: 12
# Rows_affected: 0  Bytes_sent: 2484
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000081  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001142  Lock_time: 0.000225  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000148  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001275  Lock_time: 0.000206  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000081  Lock_time: 0.000040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000071  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000042  Rows_sent: 13  Rows_examined: 13
# Rows_affected: 0  Bytes_sent: 2622
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000100  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000160  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001429  Lock_time: 0.000190  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000082  Lock_time: 0.000041  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000069  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000031  Rows_sent: 14  Rows_examined: 14
# Rows_affected: 0  Bytes_sent: 2741
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000139  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001065  Lock_time: 0.000168  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000080  Lock_time: 0.000040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000030  Rows_sent: 15  Rows_examined: 15
# Rows_affected: 0  Bytes_sent: 2895
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000142  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001296  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000076  Lock_time: 0.000038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000794  Lock_time: 0.000087  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000042  Rows_sent: 16  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 3028
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000653  Lock_time: 0.000108  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000105  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001588  Lock_time: 0.000226  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000102  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000090  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000081  Rows_sent: 17  Rows_examined: 17
# Rows_affected: 0  Bytes_sent: 3166
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000113  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000133  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000117  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001242  Lock_time: 0.000183  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000098  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000122  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000030  Rows_sent: 18  Rows_examined: 18
# Rows_affected: 0  Bytes_sent: 3304
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000748  Lock_time: 0.000177  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000162  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868485;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:04.590645' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000635  Lock_time: 0.000587  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use requestdb;
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001145  Lock_time: 0.000138  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000077  Lock_time: 0.000039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000092  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000029  Rows_sent: 19  Rows_examined: 19
# Rows_affected: 0  Bytes_sent: 3435
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000083  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000705  Lock_time: 0.000193  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001339  Lock_time: 0.000222  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000106  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000065  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000031  Rows_sent: 20  Rows_examined: 20
# Rows_affected: 0  Bytes_sent: 3576
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000110  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000108  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000110  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001201  Lock_time: 0.000139  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000074  Lock_time: 0.000038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000064  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000029  Rows_sent: 21  Rows_examined: 21
# Rows_affected: 0  Bytes_sent: 3703
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000064  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000111  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000104  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000093  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000107  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000071  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001301  Lock_time: 0.000154  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000092  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000745  Lock_time: 0.000085  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000035  Rows_sent: 22  Rows_examined: 22
# Rows_affected: 0  Bytes_sent: 3862
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000086  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000134  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000121  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000128  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000069  Lock_time: 0.000035  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000032  Rows_sent: 23  Rows_examined: 23
# Rows_affected: 0  Bytes_sent: 3998
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000059  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000715  Lock_time: 0.000135  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000103  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001231  Lock_time: 0.000144  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000101  Lock_time: 0.000039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000029  Rows_sent: 24  Rows_examined: 24
# Rows_affected: 0  Bytes_sent: 4181
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000075  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000119  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001456  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000088  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000035  Rows_sent: 25  Rows_examined: 25
# Rows_affected: 0  Bytes_sent: 4381
SET timestamp=1646868485;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000068  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000822  Lock_time: 0.000149  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868485;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868485;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000102  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868485;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# Time: 220309 23:28:06
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001257  Lock_time: 0.000143  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000093  Lock_time: 0.000047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000082  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000036  Rows_sent: 26  Rows_examined: 26
# Rows_affected: 0  Bytes_sent: 4537
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000082  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000146  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000086  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001776  Lock_time: 0.000195  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000101  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000045  Rows_sent: 27  Rows_examined: 27
# Rows_affected: 0  Bytes_sent: 4718
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000130  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001013  Lock_time: 0.000196  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000141  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.002450  Lock_time: 0.002337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 52
SET timestamp=1646868486;
UPDATE request_processing_data 
SET IS_DATA_INTERNAL = 1
WHERE TAG = 'BPMNExecutionData';
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 52
SET timestamp=1646868486;
UPDATE request_processing_data 
SET IS_DATA_INTERNAL = 0
WHERE TAG = 'StackInformation' OR TAG = 'pincFabricConfigRequest';
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000122  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000109  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000049  Rows_sent: 28  Rows_examined: 28
# Rows_affected: 0  Bytes_sent: 4842
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000113  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000164  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000174  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001406  Lock_time: 0.000186  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000088  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000076  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000032  Rows_sent: 29  Rows_examined: 29
# Rows_affected: 0  Bytes_sent: 4968
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000089  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000171  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000120  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001704  Lock_time: 0.000273  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000088  Lock_time: 0.000044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000038  Rows_sent: 30  Rows_examined: 30
# Rows_affected: 0  Bytes_sent: 5135
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000073  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000181  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000201  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001930  Lock_time: 0.000259  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868486;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:05.591173' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
use requestdb;
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868486;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000137  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
use requestdb;
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000071  Rows_sent: 31  Rows_examined: 31
# Rows_affected: 0  Bytes_sent: 5295
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000125  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001210  Lock_time: 0.000278  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000212  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001187  Lock_time: 0.001048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001740  Lock_time: 0.000272  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000095  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000100  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000032  Rows_sent: 32  Rows_examined: 32
# Rows_affected: 0  Bytes_sent: 5459
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000071  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000156  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.002063  Lock_time: 0.000311  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000111  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000049  Rows_sent: 33  Rows_examined: 33
# Rows_affected: 0  Bytes_sent: 5619
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000111  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000272  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000272  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001497  Lock_time: 0.000189  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000077  Lock_time: 0.000039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000703  Lock_time: 0.000102  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000032  Rows_sent: 34  Rows_examined: 34
# Rows_affected: 0  Bytes_sent: 5754
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000077  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000179  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000131  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.002411  Lock_time: 0.002274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 52
SET timestamp=1646868486;
UPDATE infra_active_requests SET request_status='COMPLETE' where request_status = 'COMPLETED';
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001300  Lock_time: 0.001206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 52
SET timestamp=1646868486;
UPDATE archived_infra_requests SET request_status='COMPLETE' where request_status = 'COMPLETED';
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000088  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000069  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000090  Lock_time: 0.000042  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000062  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000029  Rows_sent: 35  Rows_examined: 35
# Rows_affected: 0  Bytes_sent: 5883
SET timestamp=1646868486;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000066  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000158  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868486;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868486;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000142  Rows_sent: 1  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 129
SET timestamp=1646868486;
SELECT (SELECT 1 FROM information_schema.schemata WHERE schema_name='requestdb' LIMIT 1);
# Time: 220309 23:28:07
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868487;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001758  Lock_time: 0.000287  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868487;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868487;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000933  Lock_time: 0.000126  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868487;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000054  Rows_sent: 36  Rows_examined: 36
# Rows_affected: 0  Bytes_sent: 6005
SET timestamp=1646868487;
SELECT * FROM `requestdb`.`flyway_schema_history` FOR UPDATE;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000906  Lock_time: 0.000151  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868487;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868487;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868487;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.001029  Lock_time: 0.000213  Rows_sent: 1  Rows_examined: 2
# Rows_affected: 0  Bytes_sent: 563
SET timestamp=1646868487;
SELECT TABLE_SCHEMA TABLE_CAT, NULL  TABLE_SCHEM,  TABLE_NAME, IF(TABLE_TYPE='BASE TABLE' or TABLE_TYPE='SYSTEM VERSIONED', 'TABLE', TABLE_TYPE) as TABLE_TYPE, TABLE_COMMENT REMARKS, NULL TYPE_CAT, NULL TYPE_SCHEM, NULL TYPE_NAME, NULL SELF_REFERENCING_COL_NAME,  NULL REF_GENERATION FROM INFORMATION_SCHEMA.TABLES  WHERE (TABLE_SCHEMA = 'requestdb') AND TABLE_NAME LIKE 'flyway_schema_history'  ORDER BY TABLE_TYPE, TABLE_SCHEMA, TABLE_NAME;
# User@Host: so_admin[so_admin] @  [10.242.32.211]
# Thread_id: 690  Schema: requestdb  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 114
SET timestamp=1646868487;
SELECT variable_name FROM information_schema.user_variables WHERE variable_value IS NOT NULL;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868487;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:06.592173' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 696  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868487;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 696  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868487;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:28:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 697  Schema:   QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868488;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 697  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868488;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868488;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:07.59122' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:08.594402' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868490;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868490;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:09.590501' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:10.592355' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868492;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:11.590949' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:11.592342' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868493;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000633  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868493;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:12.593373' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868494;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868494;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000353  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:14.590442' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001285  Lock_time: 0.001061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868496;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:15.589699' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002078  Lock_time: 0.001361  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868496;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:28:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001059  Lock_time: 0.000912  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868497;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:16.590052' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 700  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868497;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 700  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868497;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:28:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 701  Schema:   QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868498;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 701  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868498;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868498;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868498;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:17.593568' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:17.593874' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002183  Lock_time: 0.002010  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868499;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:18.593099' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:18.593185' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868500;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868501;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:20.592345' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868502;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868502;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:21.592095' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000801  Lock_time: 0.000571  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868503;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:22.590999' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868503;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:22.592058' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868504;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868504;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:23.592996' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868505;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:24.590491' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:25.59082' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868507;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:26.591471' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868507;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 704  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868507;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 704  Schema:   QC_hit: No
# Query_time: 0.007724  Lock_time: 0.007648  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868507;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:28:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 705  Schema:   QC_hit: No
# Query_time: 0.050280  Lock_time: 0.050180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868508;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 705  Schema:   QC_hit: No
# Query_time: 0.044654  Lock_time: 0.044603  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868508;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.054565  Lock_time: 0.054296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868508;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:27.593405' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868509;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.022670  Lock_time: 0.022495  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868510;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:29.592594' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868511;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868511;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:30.589997' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868512;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:31.589956' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.042924  Lock_time: 0.042708  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868513;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:32.59015' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000492  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868513;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:28:33.791'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:28:33.791')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:28:33.791')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:28:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868514;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868514;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:33.592919' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868515;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:34.593311' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000947  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868516;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001348  Lock_time: 0.001013  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:35.590646' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.047175  Lock_time: 0.046964  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868517;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:36.590314' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.047478  Lock_time: 0.047359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868517;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:36.590421' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 708  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868517;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 708  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868517;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:28:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 709  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868518;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 709  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868518;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868518;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868518;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001688  Lock_time: 0.001315  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868518;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:28:38.789'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:28:38.789')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:28:38.789')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:28:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868519;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868519;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:38.590799' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:39.590741' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:39.59144' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868521;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:40.589911' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868521;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:40.591229' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000438  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868522;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:41.590801' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868523;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:42.589861' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868524;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868524;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:43.589774' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:44.589746' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868526;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:45.59008' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868527;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868527;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:46.590547' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.32.216]
# Thread_id: 714  Schema: requestdb  QC_hit: No
# Query_time: 0.013876  Lock_time: 0.000398  Rows_sent: 0  Rows_examined: 16
# Rows_affected: 0  Bytes_sent: 92
use requestdb;
SET timestamp=1646868527;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 719  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868527;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 719  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868527;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:28:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 720  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868528;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 720  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868528;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.000816  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868528;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868528;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:47.590524' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000946  Lock_time: 0.000400  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868528;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:28:48.79'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:28:48.79')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:28:48.79')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:28:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868529;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868530;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:49.592632' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:49.592411' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868531;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:50.591157' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868532;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:51.592654' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:51.592453' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002664  Lock_time: 0.001384  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868533;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002902  Lock_time: 0.000955  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868533;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:28:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868534;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:54.590934' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000751  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868536;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:55.593257' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868537;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000387  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868537;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 723  Schema:   QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000307  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868537;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 723  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868537;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:28:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 724  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868538;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 724  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868538;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868538;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:57.594698' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:28:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868539;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868540;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:28:59.592727' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001092  Lock_time: 0.000817  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868541;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:01.589784' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868543;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:02.592651' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868543;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:02.593753' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868544;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:03.590181' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004574  Lock_time: 0.004363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868545;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:04.589475' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005094  Lock_time: 0.004874  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868545;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868546;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868547;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:06.590674' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 729  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868547;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 729  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868547;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:29:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 730  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868548;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 730  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868548;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001538  Lock_time: 0.001270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868548;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:07.59037' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001881  Lock_time: 0.001603  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868548;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001460  Lock_time: 0.000558  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868548;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:29:08.79'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:29:08.79')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:29:08.79')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:29:09
# User@Host: so_user[so_user] @  [10.242.32.218]
# Thread_id: 727  Schema: catalogdb  QC_hit: No
# Query_time: 0.058049  Lock_time: 0.000344  Rows_sent: 0  Rows_examined: 73
# Rows_affected: 0  Bytes_sent: 92
use catalogdb;
SET timestamp=1646868549;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:08.58984' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:09.590152' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868551;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868551;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:10.590061' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:11.592361' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868553;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868553;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:12.590001' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868554;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868554;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:13.590431' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868555;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:14.592938' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002397  Lock_time: 0.002196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868556;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:15.590212' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003168  Lock_time: 0.002610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868556;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868557;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 733  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868557;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 733  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868557;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:29:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 734  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868558;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 734  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868558;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868558;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:17.590656' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868559;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:18.592965' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868559;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:18.592524' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868560;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:19.590022' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868560;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:19.590252' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868561;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:20.59315' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868562;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:22.590274' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868563;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:23.593319' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868565;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:24.590122' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868566;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:25.590328' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:27
# User@Host: so_user[so_user] @  [10.242.32.219]
# Thread_id: 735  Schema: catalogdb  QC_hit: No
# Query_time: 0.003235  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 73
# Rows_affected: 0  Bytes_sent: 92
use catalogdb;
SET timestamp=1646868567;
select table_name from information_schema.TABLES where table_schema = database() and table_type = 'SEQUENCE';
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868567;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:26.592635' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 747  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868567;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 747  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868567;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:29:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 748  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868568;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 748  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868568;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001925  Lock_time: 0.001785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868568;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868569;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868570;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004919  Lock_time: 0.004661  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868571;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000571  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868572;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:31.591439' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868572;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:31.590739' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.001117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868573;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001915  Lock_time: 0.001555  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868573;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:32.590185' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868574;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:33.590384' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:34.590431' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868575;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:34.590077' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000792  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868576;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:35.590322' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868577;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:36.592919' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868577;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:36.592548' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 751  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868577;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 751  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868577;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:29:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 752  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868578;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 752  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868578;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868578;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:37.596031' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001357  Lock_time: 0.000397  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868578;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:38.592895' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868580;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868581;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:40.590767' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868582;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:41.592309' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868583;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:42.590339' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:43.59055' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868585;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:44.592613' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868586;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:45.589725' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868587;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:46.590132' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 755  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868587;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 755  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868587;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:29:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 756  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868588;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 756  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868588;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:47.590635' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001861  Lock_time: 0.001020  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868588;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:29:48.79'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:29:48.79')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:29:48.79')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:29:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000902  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868589;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:48.590201' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868590;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868591;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868592;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:52.590627' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001800  Lock_time: 0.001299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868594;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:29:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868595;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:54.592394' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868595;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:54.592603' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868596;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.006309  Lock_time: 0.006124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:55.590097' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868597;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.008356  Lock_time: 0.008129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868597;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:56.592211' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 759  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868597;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 759  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868597;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:29:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 760  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868598;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 760  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868598;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868598;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:57.592192' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:29:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868599;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:58.591026' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000431  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:59.590423' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868600;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:29:59.590504' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000641  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868601;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:00.589858' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:01.592409' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868603;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:03.590903' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868604;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:03.59135' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000292  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868605;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000353  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868605;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:30:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868606;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:05.590524' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868607;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:06.591155' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868607;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:06.591216' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 766  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868607;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 766  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868607;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:30:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 767  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868608;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 767  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868608;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:07.591222' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868609;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:08.59236' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868610;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:09.592378' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001463  Lock_time: 0.001319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868611;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:10.59278' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:12.592977' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868614;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:13.590803' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868614;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:30:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868615;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:14.592349' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868615;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:14.592713' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868616;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868617;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:16.590708' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868617;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:16.590727' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 770  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868617;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 770  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868617;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:30:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 771  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868618;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 771  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868618;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000529  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:17.590171' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868619;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:18.590543' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868620;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:19.59231' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000407  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:20.592803' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000967  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:21.592392' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868623;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:22.592697' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001191  Lock_time: 0.000955  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868623;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:22.593094' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868624;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868624;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:23.590088' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868625;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:24.590528' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868625;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:25.593057' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868627;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:26.590128' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 774  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000216  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868627;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 774  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868627;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:30:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 775  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868628;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 775  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868628;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868628;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:27.591208' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868629;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868629;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:28.592437' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868630;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:29.590717' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868630;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:29.590467' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002612  Lock_time: 0.002069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868631;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868631;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:30.58956' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000812  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868632;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:30:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868633;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:32.592926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868634;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:33.590291' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868635;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:34.592692' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868636;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868636;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:35.58992' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868637;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:36.590843' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 778  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868637;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 778  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868637;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:30:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 779  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868638;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 779  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868638;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868638;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000545  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868638;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:37.590351' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868639;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:38.593357' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001148  Lock_time: 0.000981  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868640;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:39.592633' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001021  Lock_time: 0.000866  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:39.592412' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868641;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:40.589717' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868642;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:41.590283' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868643;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868643;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:42.593028' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868644;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868645;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:44.592826' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:45.589849' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868646;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868647;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:46.59041' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 782  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868647;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 782  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868647;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:30:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 783  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868648;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 783  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868648;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:47.590814' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001143  Lock_time: 0.000521  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868648;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:30:48.793'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:30:48.793')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:30:48.793')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:30:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868649;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:30:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868650;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:49.590259' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000398  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868651;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:50.592431' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868652;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868652;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:51.592295' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868652;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:51.59272' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868653;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:52.5897' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868654;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:53.591033' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:54.59003' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:55.59065' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868657;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:30:56.590888' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 786  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868657;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 786  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868657;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:30:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 787  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868658;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 787  Schema:   QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000449  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868658;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001659  Lock_time: 0.001510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868658;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:30:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001425  Lock_time: 0.001087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868659;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:31:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868660;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868660;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000932  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:00.590445' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868662;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:01.590091' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:01.589739' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868663;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:02.590833' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:02.591352' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:03.591877' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001295  Lock_time: 0.000535  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868664;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:31:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868665;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:04.590224' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001425  Lock_time: 0.001242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868665;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:04.590529' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001249  Lock_time: 0.001037  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:05.591108' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:06.590131' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868667;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 790  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868667;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 790  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868667;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:31:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 791  Schema:   QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000277  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868668;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 791  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000234  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868668;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868668;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:07.589875' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:08.589901' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868670;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868671;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:10.593094' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000530  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868672;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:11.590253' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868673;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:12.590043' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868674;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:13.591277' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001873  Lock_time: 0.001357  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868675;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868675;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:14.592654' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001562  Lock_time: 0.001228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868676;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:15.59027' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868677;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:16.592185' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868677;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:16.592844' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 794  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868677;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 794  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868677;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:31:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 795  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868678;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 795  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868678;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001389  Lock_time: 0.001199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868678;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:17.59273' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868679;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:18.589797' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868680;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:19.593105' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868681;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:20.590271' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000455  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868682;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:21.59018' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868683;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:22.593566' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001269  Lock_time: 0.000944  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:23.589766' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003060  Lock_time: 0.001053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868684;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:31:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868685;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868685;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868685;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:24.592196' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868686;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:25.590222' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868687;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:26.591329' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 798  Schema:   QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000315  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868687;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 798  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868687;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:31:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 799  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868688;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 799  Schema:   QC_hit: No
# Query_time: 0.001044  Lock_time: 0.000962  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868688;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001544  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868688;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868688;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:27.59144' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868689;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:28.592326' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001266  Lock_time: 0.001063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868690;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868690;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:29.592856' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:30.592481' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001210  Lock_time: 0.001002  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868691;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:30.592571' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868692;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.001033  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868692;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:31.592815' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:32.590205' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000597  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868694;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868694;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:33.590345' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868695;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868695;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:34.592841' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868696;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868697;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868697;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:36.593683' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 802  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868697;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 802  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868697;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:31:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 803  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868698;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 803  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868698;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868698;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:37.590485' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868699;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:38.590094' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868699;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:38.590424' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868700;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868700;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:39.593221' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001280  Lock_time: 0.001020  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868701;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:40.59029' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001207  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868702;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:41.592704' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001252  Lock_time: 0.001024  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868702;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:41.592867' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868703;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:42.590918' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868704;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:43.590728' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868704;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:43.5907' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868705;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868705;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:44.593453' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868705;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:44.592735' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868706;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:31:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868707;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000417  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868707;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:46.589872' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 806  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868707;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 806  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868707;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:31:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 807  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868708;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 807  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868708;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868708;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:47.589915' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002049  Lock_time: 0.001529  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868708;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:31:48.791'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:31:48.791')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:31:48.791')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:31:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868709;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:48.589992' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000386  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868710;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:49.590009' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868711;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868711;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:50.590598' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001107  Lock_time: 0.000957  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868712;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:51.589922' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001449  Lock_time: 0.001271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868713;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:52.590128' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001880  Lock_time: 0.001677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868714;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:53.590273' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868715;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:54.590549' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868716;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868716;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:55.592908' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868717;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001307  Lock_time: 0.001156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868717;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:56.591696' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 810  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868717;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 810  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868717;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:31:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 811  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868718;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 811  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868718;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868718;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:57.59026' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:31:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868719;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:58.590905' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868720;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:59.589824' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:31:59.589547' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868721;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868721;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:00.589738' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868722;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868723;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:02.590058' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868723;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:02.590369' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868724;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:03.593014' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868725;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:04.590043' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:05.590179' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868727;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868727;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:06.59099' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 814  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868727;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 814  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868727;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:32:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 815  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868728;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 815  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868728;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868728;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868729;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:08.593291' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868729;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:08.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868730;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868730;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:09.58984' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000345  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868731;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868732;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:11.590231' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868732;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868733;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:12.590506' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868734;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:13.592271' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868734;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:13.59236' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868735;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:14.593231' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868736;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868737;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 818  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868737;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 818  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868737;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:32:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 819  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868738;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 819  Schema:   QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868738;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001662  Lock_time: 0.001325  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868738;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:17.590439' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001056  Lock_time: 0.000859  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868739;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:18.592701' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868740;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868740;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:19.589685' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868741;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868741;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:20.589904' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868742;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:21.592837' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868743;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868743;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:22.589817' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868744;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:23.590987' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868744;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868745;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868745;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:24.592704' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001266  Lock_time: 0.000990  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868746;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:25.591051' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000873  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868746;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:25.591428' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000444  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868747;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000831  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868747;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:26.592737' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 822  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868747;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 822  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868747;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:32:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 823  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868748;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 823  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868748;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868748;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000621  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868749;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:28.590351' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868749;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:28.59003' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868750;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868750;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:29.589906' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000371  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868751;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:30.590602' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868752;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:31.593015' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868753;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:32.589969' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868754;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:33.589865' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868754;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:33.590188' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868755;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:34.592311' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868756;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:35.592852' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001092  Lock_time: 0.000924  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868757;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:36.591261' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 826  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868757;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 826  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868757;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:32:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 827  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868758;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 827  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868758;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000857  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868758;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:37.592364' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000604  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868758;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:37.59215' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001274  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868759;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:38.592907' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000392  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868760;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:39.590315' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868760;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:39.590141' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868762;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868762;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:41.589908' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868763;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:42.589943' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868764;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:43.593044' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001388  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868765;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:45.590061' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868767;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:46.590327' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 830  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868767;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 830  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868767;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:32:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 831  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868768;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 831  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868768;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868768;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:47.590492' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002040  Lock_time: 0.001120  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868768;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:32:48.794'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:32:48.794')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:32:48.794')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:32:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868769;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002159  Lock_time: 0.001599  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868770;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:32:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868771;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:50.590692' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868772;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:51.592757' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868773;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:52.58948' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868773;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:52.58968' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868774;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:53.590202' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868775;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:54.592326' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868775;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:54.592201' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868776;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868777;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:56.589737' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868777;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 834  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868777;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 834  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868777;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:32:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 835  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868778;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 835  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868778;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868778;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:57.590452' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:32:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868779;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868779;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:32:58.592529' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868780;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868781;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:00.589659' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:00.589808' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868782;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:01.590147' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868783;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:02.59073' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868784;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868785;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:04.590105' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001660  Lock_time: 0.001373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868786;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000902  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868787;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:06.590943' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 838  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868787;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 838  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868787;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:33:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 839  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868788;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 839  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868788;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868788;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868788;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:07.590118' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:08.591443' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868789;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:08.591216' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868790;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:09.592568' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868791;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000042  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868791;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:10.593683' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868792;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:11.592487' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868793;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868794;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:13.592665' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868795;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:33:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868796;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868796;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:15.589956' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000627  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868797;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:16.589766' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 842  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868797;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 842  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868797;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:33:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 843  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868798;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 843  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868798;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000444  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868798;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:17.592333' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.001080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868799;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:18.590012' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868800;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:19.592792' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868801;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:20.589868' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868802;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868803;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:22.590759' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868803;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:22.592095' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001752  Lock_time: 0.001068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868804;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:24.589979' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:25.59071' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001496  Lock_time: 0.001291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868807;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 846  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868807;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 846  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868807;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:33:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 847  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868808;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 847  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868808;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000390  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868808;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:27.590545' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868809;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:28.590165' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868810;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:29.5896' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868811;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:30.590413' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868812;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:31.593203' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001498  Lock_time: 0.001299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868813;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868814;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:33.589635' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868814;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:33.589824' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868815;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868815;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:34.589717' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868816;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:35.59024' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868817;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:36.592769' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 850  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868817;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 850  Schema:   QC_hit: No
# Query_time: 0.000105  Lock_time: 0.000063  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868817;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:33:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 851  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868818;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 851  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868818;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868818;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:37.592786' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868818;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:37.59284' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868819;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:38.590176' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:39.592667' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868821;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:40.590126' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868822;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:33:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868823;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:42.590742' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868824;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:43.592629' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868825;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:44.589729' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868826;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:45.589841' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868827;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:46.591295' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 854  Schema:   QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000258  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868827;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 854  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868827;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:33:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 855  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868828;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 855  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868828;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868828;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:47.592849' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001406  Lock_time: 0.001117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868828;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001648  Lock_time: 0.000550  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868828;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:33:48.791'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:33:48.791')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:33:48.791')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:33:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868829;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:48.590099' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001064  Lock_time: 0.000512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868829;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:33:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:49.593438' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:50.590783' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000613  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868832;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:51.590881' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000947  Lock_time: 0.000612  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868833;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:52.590744' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868834;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:53.590064' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868835;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:54.592819' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868836;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868836;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:55.589995' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868837;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:56.592597' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 858  Schema:   QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868837;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 858  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868837;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:33:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 859  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868838;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 859  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000256  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868838;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868838;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:57.589765' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:33:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868839;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:58.589846' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868840;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:59.590005' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868840;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:33:59.589921' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868841;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:00.590402' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868842;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:01.592528' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868843;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:34:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868844;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:03.589897' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868844;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:03.589848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868845;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:04.590434' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868846;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:05.590635' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868846;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:05.589963' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:06.593201' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 862  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868847;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 862  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868847;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:34:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 863  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868848;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 863  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868848;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868848;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:07.590066' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:08.592708' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000908  Lock_time: 0.000352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868850;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868850;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:09.590052' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868851;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868852;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:11.591598' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868853;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:12.592588' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868854;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:13.592559' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868854;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:13.592896' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868855;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868856;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:15.59049' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868857;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868857;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:16.592843' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 866  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868857;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 866  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868857;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:34:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 867  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868858;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 867  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868858;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868858;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:17.589995' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868859;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:18.592757' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868860;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:19.592819' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868861;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:20.590101' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:21.592622' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868863;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:22.591914' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868864;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:23.590417' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868865;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:24.590556' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868866;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:25.59068' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868867;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001462  Lock_time: 0.001346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868867;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:26.589636' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 870  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868867;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 870  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868867;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:34:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 871  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868868;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 871  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868868;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868868;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:27.592809' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868868;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:27.592379' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001114  Lock_time: 0.000955  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868869;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001592  Lock_time: 0.000993  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868869;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:34:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868870;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868870;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:29.590084' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868871;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:30.590344' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868871;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:30.590688' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868872;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:31.593418' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000724  Lock_time: 0.000523  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868873;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868873;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:32.593059' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001524  Lock_time: 0.001298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868874;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002223  Lock_time: 0.001379  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868874;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:34:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868875;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868876;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:35.59177' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000353  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868877;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:36.591228' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 876  Schema:   QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868877;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 876  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868877;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:34:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 877  Schema:   QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000288  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868878;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 877  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868878;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001088  Lock_time: 0.000450  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868878;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000984  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868878;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:37.592223' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868879;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:38.592628' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868880;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002118  Lock_time: 0.001800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868881;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:40.590774' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868882;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:41.589961' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868882;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:34:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:42.589733' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868884;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:43.590464' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868885;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:44.590444' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868885;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868886;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868886;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:45.590958' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000711  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868887;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:46.589919' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 880  Schema:   QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868887;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 880  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868887;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:34:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 881  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868888;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 881  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868888;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001485  Lock_time: 0.001217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868888;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001410  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868888;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:34:48.794'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:34:48.794')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:34:48.794')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:34:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001207  Lock_time: 0.000974  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868889;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:48.590737' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868890;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:49.590124' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868891;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:50.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868892;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868892;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:51.590079' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868893;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:52.590172' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868893;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:52.590214' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868894;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:53.592975' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868895;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868895;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:54.590554' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868896;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:55.589757' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:56.590295' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 884  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868897;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 884  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868897;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:34:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 885  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868898;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 885  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868898;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868898;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:57.592637' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868898;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:57.592423' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:34:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868899;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:58.592636' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868900;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:34:59.589764' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000347  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:00.59004' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:01.590364' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868903;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868903;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:02.593013' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001355  Lock_time: 0.001135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868904;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:03.590233' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868905;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868905;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:04.59266' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001198  Lock_time: 0.001007  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:05.590807' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001105  Lock_time: 0.000869  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868907;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:06.592543' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000869  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868907;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:06.592893' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 888  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868907;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 888  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868907;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:35:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 889  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868908;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 889  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868908;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000470  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868908;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868908;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:07.589578' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868909;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:08.590068' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868909;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:08.590095' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868910;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:09.590258' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868911;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:10.592106' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000596  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868912;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:11.589957' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:12.593017' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868914;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868914;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:13.590154' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868915;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:14.591488' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868915;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:14.590701' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868916;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:15.593165' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000886  Lock_time: 0.000713  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868917;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:16.592195' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 892  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868917;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 892  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868917;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:35:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 893  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868918;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 893  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000259  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868918;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868918;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:18.589544' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868920;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:19.590125' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:20.589817' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868922;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:21.592655' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868923;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:22.59039' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868924;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:23.592748' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868925;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:24.592582' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868926;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:25.590174' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868927;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:26.590199' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 896  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868927;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 896  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868927;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:35:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 897  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868928;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 897  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868928;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868928;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:27.590305' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868928;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:27.590718' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:28.590803' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868929;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:28.590787' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868930;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868930;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:29.590506' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000357  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868931;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868931;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:30.594375' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868932;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:31.589692' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:31.589848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:32.590435' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000666  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868934;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868934;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868935;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:34.590465' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868936;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868936;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:35.590451' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868937;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:36.592199' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 900  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868937;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 900  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868937;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:35:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 901  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868938;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 901  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868938;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868938;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:37.594286' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868939;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868939;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:38.589978' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868940;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868941;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:40.589631' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:41.590128' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001295  Lock_time: 0.001141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868943;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:42.590297' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868944;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868944;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:43.592474' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868945;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:44.590132' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868946;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868946;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:45.590428' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000632  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868947;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 904  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868947;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 904  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868947;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:35:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 905  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868948;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 905  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868948;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.010209  Lock_time: 0.010015  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868948;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:47.590137' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646868948;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:35:48.793'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:35:48.793')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:35:48.793')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:35:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001041  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646868949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:48.590255' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001038  Lock_time: 0.000814  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868950;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:49.59043' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.000983  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868951;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:50.590932' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868952;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868952;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:51.590283' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868953;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:52.589889' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868954;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:53.590415' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868954;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:53.59015' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868955;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:54.592938' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868956;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:35:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868957;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:56.590284' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868957;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:56.590029' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 908  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868957;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 908  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868957;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:35:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 909  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868958;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 909  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868958;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868958;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:57.590056' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:35:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868959;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:58.593063' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868960;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:35:59.592558' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:00.589901' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868962;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:01.590141' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868962;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:01.59004' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:02.590485' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001993  Lock_time: 0.001338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868964;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:36:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000879  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868965;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868965;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:04.589812' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868966;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868966;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:05.589839' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:06.590799' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 912  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868967;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 912  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868967;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:36:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 913  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868968;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 913  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868968;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868968;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:07.589662' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:08.590433' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868970;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:09.590178' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868971;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:10.594092' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868972;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:11.590548' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868973;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:12.59069' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001385  Lock_time: 0.001171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868974;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868974;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:13.589987' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:14.593075' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868976;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868976;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:15.590707' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868977;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:16.590716' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 916  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868977;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 916  Schema:   QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868977;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:36:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 917  Schema:   QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000348  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868978;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 917  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868978;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001735  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868978;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001753  Lock_time: 0.001441  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868978;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:17.590052' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000534  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:18.59102' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001119  Lock_time: 0.000890  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868980;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:19.590267' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868981;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:20.592732' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868982;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:21.590031' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868982;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:21.590309' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868983;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:22.592458' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868983;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:22.593295' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868984;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:23.59001' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868985;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:24.590789' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868986;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001289  Lock_time: 0.001048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:25.59002' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868987;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:26.590413' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 920  Schema:   QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868987;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 920  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868987;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:36:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 921  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868988;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 921  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868988;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001134  Lock_time: 0.000884  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868988;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:27.590413' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001169  Lock_time: 0.000913  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868988;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:27.59019' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000420  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868989;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:28.592136' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868989;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:28.592922' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868990;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:29.589435' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868991;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:30.590659' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868991;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:30.589919' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868992;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:31.59275' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868993;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:32.590644' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000480  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868994;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:33.589898' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868995;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:34.590911' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868996;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:35.590846' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868997;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:36.589622' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 925  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000216  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868997;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 925  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868997;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:36:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 926  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646868998;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 926  Schema:   QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000988  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646868998;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868998;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:36:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868999;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:38.590615' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646868999;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:38.58992' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001343  Lock_time: 0.001206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869000;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000956  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:39.589625' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:40.591549' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869002;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869002;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869002;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:41.592242' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869003;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869004;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:43.590387' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869005;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:44.592875' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869005;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:44.592726' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869006;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:45.58997' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001377  Lock_time: 0.000769  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869006;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:36:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869007;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:46.592965' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869007;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:46.59322' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 929  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 929  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:36:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 931  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869008;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 931  Schema:   QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000259  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869008;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869008;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869008;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:47.589863' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001951  Lock_time: 0.001434  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869008;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:36:48.794'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:36:48.794')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:36:48.794')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:36:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000424  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869009;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:48.59016' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000477  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001429  Lock_time: 0.001207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869011;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:50.590385' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869012;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:51.589886' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869013;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:52.590076' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869014;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869014;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869015;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:54.592724' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869016;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:55.592579' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:56.589405' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000339  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869017;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:56.589725' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 935  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 935  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:36:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 936  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869018;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 936  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869018;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869018;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869018;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:57.590353' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:36:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869019;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:58.59001' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869019;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:36:58.589999' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869020;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869021;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:00.590672' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869022;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:01.592485' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:01.592305' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869023;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869023;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:02.593173' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001682  Lock_time: 0.001122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869024;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:37:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869025;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:04.592407' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000972  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:05.592577' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869027;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:06.58979' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 939  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 939  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000261  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:37:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 940  Schema:   QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000250  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 940  Schema:   QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000588  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869028;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:07.592754' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869028;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:07.591494' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000507  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869029;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:37:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869030;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:09.59245' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869031;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869031;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:10.593246' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869032;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:11.592898' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001302  Lock_time: 0.001033  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869032;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869033;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:12.590548' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869033;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:12.591014' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869034;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:13.590162' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869035;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:14.590675' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869036;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:15.592911' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869037;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:16.589816' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:16.590139' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 944  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 944  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:37:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 945  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 945  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869038;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:17.589926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869039;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869039;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:18.591914' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001030  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869040;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:19.589567' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000913  Lock_time: 0.000720  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869040;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:19.589864' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869041;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869042;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:21.592586' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869043;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:22.592486' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001411  Lock_time: 0.000900  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869043;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:23.589923' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:23.58959' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869045;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:24.590083' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869045;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:37:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:25.59303' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869047;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869047;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 948  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 948  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:37:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 949  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 949  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869048;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869049;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:28.592499' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869049;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869050;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:29.590066' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:29.590005' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869051;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:30.590671' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002818  Lock_time: 0.001018  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869051;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:37:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869052;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:31.592924' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869053;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:32.589894' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001746  Lock_time: 0.000533  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869053;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:37:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869054;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:33.592794' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869055;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:34.589836' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869056;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:35.590921' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869057;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869057;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869057;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:36.594414' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 952  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 952  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:37:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 953  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 953  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869058;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869059;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:38.591425' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869060;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869060;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869061;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:40.590886' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869061;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:40.590651' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869062;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:41.589683' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869062;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:41.589898' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869063;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:42.590269' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869064;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:43.592998' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869065;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869066;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:45.590118' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000450  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869067;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:46.589937' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001439  Lock_time: 0.000954  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869067;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 956  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 956  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:37:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 957  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 957  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869068;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:47.592958' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001124  Lock_time: 0.000644  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869068;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:37:48.794'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:37:48.794')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:37:48.794')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:37:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869069;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869069;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:48.58994' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869070;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:49.589639' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869071;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:50.589984' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000805  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869072;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:51.589749' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:51.590478' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000965  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869073;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:52.589718' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.000953  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869074;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:53.589863' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869075;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:54.592191' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869076;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:55.59249' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869077;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:56.590237' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 960  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 960  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:37:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 961  Schema:   QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 961  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:57.589895' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:37:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:58.59032' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869080;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:37:59.592803' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869081;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:00.590351' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869082;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:01.592271' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:02.590069' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869084;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:03.593239' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869085;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:04.590044' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:05.590447' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001179  Lock_time: 0.000621  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869087;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 964  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 964  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:38:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 965  Schema:   QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000340  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 965  Schema:   QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000291  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869088;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:07.593118' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869088;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:07.592682' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000448  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869089;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001021  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869089;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:08.590541' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869090;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869090;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:09.589756' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869091;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:10.590674' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000894  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869092;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:11.589872' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869093;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869094;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:13.590429' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869095;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869095;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:14.592241' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869096;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:15.592797' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869097;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:16.589678' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869097;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 968  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 968  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:38:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 969  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 969  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869098;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:17.590078' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:18.590347' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000642  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869100;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:20.592581' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869101;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:20.592854' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869102;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:21.58955' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869103;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:22.590191' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869104;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:23.592532' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869105;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:24.589565' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:25.592603' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.001035  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869107;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 972  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 972  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:38:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 973  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 973  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869108;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:27.592646' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869109;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:28.59014' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869110;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:29.592604' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869111;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:30.589989' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:31.590122' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869113;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:32.590327' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:33.592796' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869115;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:34.589437' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869116;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:35.59062' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869117;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:36.590268' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 976  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 976  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:38:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 977  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 977  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869118;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001845  Lock_time: 0.001110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869119;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:38.58995' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002017  Lock_time: 0.001285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869119;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:38.589531' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869120;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.000405  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869120;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:38:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869121;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:40.590414' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869122;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:41.592486' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869123;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000822  Lock_time: 0.000683  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869123;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.001048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869124;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:43.592683' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869125;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:44.589554' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869126;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:45.590634' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869127;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869127;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:46.59085' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 980  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000238  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 980  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:38:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 981  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 981  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869128;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:47.592731' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000446  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869128;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:38:48.8'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:38:48.8')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:38:48.8')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:38:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869129;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:48.592621' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000614  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869129;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:48.592484' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869130;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:49.592638' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869130;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:49.592918' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869131;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869132;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:51.592925' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869133;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001090  Lock_time: 0.000589  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869133;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:38:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869134;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:53.592445' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001291  Lock_time: 0.001057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869135;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869136;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869136;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:55.593397' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869137;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 984  Schema:   QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000256  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 984  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:38:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 985  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 985  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869138;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:57.593173' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:38:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869139;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:58.589822' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869139;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:58.590593' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869140;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:38:59.592329' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869140;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869141;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:00.592577' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869142;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:01.589953' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869142;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:01.590341' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869143;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:02.592541' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000801  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869144;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869144;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869145;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:04.589384' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869146;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:05.593144' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869146;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:05.592645' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869147;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:06.590004' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 992  Schema:   QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 992  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:39:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 993  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 993  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869148;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:07.592435' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:08.592383' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869150;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869150;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:09.589756' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869151;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:10.589957' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869152;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:11.593126' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869153;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869153;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:12.591143' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869154;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:13.589933' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869155;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869155;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:14.591308' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869156;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:15.593014' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:16.589646' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 996  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 996  Schema:   QC_hit: No
# Query_time: 0.000122  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:39:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 997  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 997  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000533  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869158;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869159;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000666  Lock_time: 0.000480  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869160;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:19.589848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001389  Lock_time: 0.001205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869161;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:20.589776' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869162;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869163;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:22.592497' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869164;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:23.592421' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869164;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:23.592571' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000765  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869166;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:25.58957' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000593  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1000  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1000  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:39:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1001  Schema:   QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000265  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1001  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869168;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869169;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:28.590019' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869169;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:28.590192' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000953  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869170;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:29.589842' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869171;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869172;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:31.589818' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001274  Lock_time: 0.001161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869172;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:31.58979' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869173;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869173;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:32.593798' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:33.592777' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869175;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:34.589626' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869176;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:35.592605' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869177;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:36.590357' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1004  Schema:   QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000414  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1004  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:39:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1005  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1005  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869178;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:37.592787' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869179;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869179;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:38.59016' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869180;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:39.590185' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869181;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:40.590184' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869182;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869182;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:41.590303' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:42.590268' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001836  Lock_time: 0.001357  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869183;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:39:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:43.592667' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869184;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:43.592405' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001107  Lock_time: 0.000950  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869185;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.000973  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869185;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:44.592326' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001308  Lock_time: 0.001133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869186;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:45.592548' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869186;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:45.592838' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869187;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:46.59046' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:46.591126' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1008  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1008  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:39:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1009  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1009  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869188;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:47.589627' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001926  Lock_time: 0.001448  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869188;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:39:48.794'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:39:48.794')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:39:48.794')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:39:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869189;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:48.590392' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869190;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869190;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:49.5903' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869191;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:50.59251' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869192;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:51.592619' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869193;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:52.589926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869194;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:53.590504' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869195;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869195;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:55.593541' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000690  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869196;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:55.593849' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:39:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869197;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869197;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:56.589559' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001188  Lock_time: 0.001038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869197;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:56.593116' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1012  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1012  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:39:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1013  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1013  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869198;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:57.590159' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001369  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869198;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:39:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869199;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:58.590449' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869200;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869200;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:39:59.590377' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869201;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:00.592363' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000837  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869202;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:40:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000721  Lock_time: 0.000487  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869203;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:02.592659' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869204;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:03.589863' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869205;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:04.592861' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000324  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869206;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:05.59001' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869207;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869207;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:06.590199' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1016  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1016  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:40:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1017  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1017  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869208;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869208;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:07.590082' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869209;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:08.590104' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869209;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:08.589932' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000968  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869210;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:09.589698' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869211;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:10.589512' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869212;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:11.593053' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869213;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:12.589926' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869213;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:12.590125' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869214;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:13.594282' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001604  Lock_time: 0.001373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869215;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:14.592901' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869216;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:15.589926' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001349  Lock_time: 0.000613  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869216;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:40:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869217;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:16.589831' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1020  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1020  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:40:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1021  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1021  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869218;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:17.590196' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869219;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:18.590723' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869219;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:18.590275' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000672  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869220;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:19.589585' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869221;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:20.591571' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001508  Lock_time: 0.001156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869222;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:21.589606' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869223;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869223;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:22.589691' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869224;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:23.59022' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869225;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:24.592437' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869226;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:25.592284' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869227;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:26.592356' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1024  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869227;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1024  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869227;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:40:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1025  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869228;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1025  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869228;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869228;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:27.590157' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869228;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:27.590148' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869229;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:28.589943' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000816  Lock_time: 0.000710  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869230;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:29.592718' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869231;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:30.589546' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869232;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869232;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:31.592346' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001011  Lock_time: 0.000782  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869233;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869234;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:33.590687' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001397  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869235;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869235;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:34.590393' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869236;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:35.592088' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869237;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869237;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:36.590027' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1028  Schema:   QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869237;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1028  Schema:   QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000317  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869237;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:40:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1029  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869238;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1029  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869238;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869238;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:37.592919' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869239;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:38.59051' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869239;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:38.590656' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000664  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869240;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:39.589856' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.001040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869240;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:39.589554' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869241;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:40.590308' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869242;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869242;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:41.592458' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869243;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:42.590346' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869244;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:43.589975' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869245;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001290  Lock_time: 0.001078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869246;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:45.590052' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869247;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001320  Lock_time: 0.001102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869247;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:46.591436' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1032  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869247;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1032  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869247;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:40:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1033  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869248;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1033  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869248;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869248;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:47.592929' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001259  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869248;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:40:48.799'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:40:48.799')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:40:48.799')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:40:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869249;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:48.590103' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:48.589922' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869250;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:49.590122' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000687  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869250;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:40:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869251;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:50.590433' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869252;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869252;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:51.592583' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869253;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:52.590701' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869254;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:53.589386' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869255;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:54.592897' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:55.590411' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000426  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869257;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:56.589901' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1036  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869257;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1036  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869257;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:40:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1037  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869258;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1037  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869258;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869258;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:40:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869259;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:58.589984' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869260;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:40:59.590091' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001347  Lock_time: 0.001204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869261;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:00.590185' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869261;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001373  Lock_time: 0.001118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869262;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:01.589817' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000323  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869263;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001272  Lock_time: 0.001067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869263;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:02.590384' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869264;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001358  Lock_time: 0.001199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869264;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:03.590135' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869265;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:04.589983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:04.590145' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869266;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:05.590435' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869267;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:06.590032' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1040  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869267;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1040  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869267;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:41:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1041  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869268;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1041  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869268;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000764  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:07.589617' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869269;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869269;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:08.590251' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000617  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869270;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:41:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:10.589788' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:11.589631' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869272;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:11.590067' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001135  Lock_time: 0.000758  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869273;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:41:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:13.592571' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001021  Lock_time: 0.000344  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869275;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869275;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:14.592442' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869276;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869276;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:15.58965' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:16.590063' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1044  Schema:   QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000335  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869277;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1044  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869277;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:41:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1045  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869278;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1045  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869278;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869278;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:17.590289' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869279;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:18.592486' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001150  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869280;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000739  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869281;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:20.59235' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869282;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869284;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:23.592902' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869284;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:23.592854' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869285;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869286;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869286;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:25.592366' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869287;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1048  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869287;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1048  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869287;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:41:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1049  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869288;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1049  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000235  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869288;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869288;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869288;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:27.590357' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869289;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:28.593243' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000589  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869290;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:29.592368' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869291;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:30.592355' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869291;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:30.592461' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869292;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869293;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:32.589958' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869294;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869294;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:33.590409' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869295;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:34.593055' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869296;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:35.590217' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869297;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:36.591815' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1052  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869297;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1052  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869297;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:41:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1053  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869298;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1053  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869298;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000447  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869298;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:37.589743' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869299;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:38.589939' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000752  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869300;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:39.589508' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001187  Lock_time: 0.001007  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869301;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001026  Lock_time: 0.000867  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869302;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:41.590057' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869302;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:41.589977' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001456  Lock_time: 0.001280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869303;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:42.590989' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869304;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:41:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869305;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:44.590454' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869306;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001101  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869307;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:46.590382' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1056  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869307;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1056  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869307;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:41:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1057  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869308;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1057  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869308;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869308;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002308  Lock_time: 0.001550  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869308;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:41:48.794'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:41:48.794')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:41:48.794')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:41:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869309;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:48.590527' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869310;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:49.59307' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869311;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:50.590432' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869312;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:51.590283' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:52.590379' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869313;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:52.590056' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869314;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:53.592422' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869315;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:54.592428' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869315;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:54.592713' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869316;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:55.590053' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869316;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:55.590551' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869317;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869317;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:56.589684' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1060  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869317;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1060  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869317;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:41:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1061  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869318;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1061  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869318;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:57.589862' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869318;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:57.589832' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:41:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000412  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869319;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:58.589675' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:41:59.592864' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869321;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:00.592644' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869322;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:01.589655' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869323;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:02.590237' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869323;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:02.59006' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002002  Lock_time: 0.001410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869324;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:42:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000440  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869325;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:04.591422' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869326;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:05.589613' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001286  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869327;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:06.590273' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1064  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869327;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1064  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869327;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:42:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1065  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869328;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1065  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869328;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869328;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869328;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:07.592962' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:08.590059' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869330;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:09.592959' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869331;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000936  Lock_time: 0.000382  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869331;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:42:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869332;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:11.592251' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869333;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:12.592759' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869334;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:13.589972' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869334;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:13.590071' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869335;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869335;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:14.589985' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869336;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:15.590507' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869337;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000795  Lock_time: 0.000481  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869337;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1068  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869337;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1068  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869337;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:42:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1069  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869338;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1069  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869338;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869338;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:17.589953' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869339;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:18.592792' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869339;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:42:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000990  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869340;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869341;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:20.590029' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869342;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869342;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:21.590135' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869343;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869343;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:22.590261' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869344;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869344;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:23.590333' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869345;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001279  Lock_time: 0.001109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869345;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:24.590034' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000920  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869346;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869346;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:25.591573' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869347;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869347;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:26.590292' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1072  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869347;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1072  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869347;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:42:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1073  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869348;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1073  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869348;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869348;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869349;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:28.592552' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869350;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:29.589848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:30.589635' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869352;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:42:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869353;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:32.592873' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869354;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:33.590262' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:34.592418' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869356;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869357;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:36.590184' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1076  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869357;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1076  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869357;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:42:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1077  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869358;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1077  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869358;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869359;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:38.590177' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869359;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:38.589952' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869360;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:39.592015' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869361;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:40.594149' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869361;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869362;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:41.589886' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869362;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:41.589764' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869363;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:42.589725' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869364;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:43.590088' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000742  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:44.590129' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869366;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:45.59016' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001302  Lock_time: 0.001158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869367;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:46.593065' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1080  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869367;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1080  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869367;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:42:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1081  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869368;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1081  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869368;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000520  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869368;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:47.589729' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002643  Lock_time: 0.001955  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869368;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:42:48.796'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:42:48.796')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:42:48.796')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:42:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869369;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:48.589942' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869370;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:49.589843' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869371;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:50.590267' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:51.592691' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869373;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:52.590132' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869374;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:53.590132' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:54.589842' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000942  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869375;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:54.589646' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000565  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869376;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:55.590177' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000339  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869377;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869377;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1084  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869377;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1084  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869377;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:42:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1085  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869378;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1085  Schema:   QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000263  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869378;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869378;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:57.5942' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:42:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869379;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001183  Lock_time: 0.000998  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869379;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:58.59302' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869380;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:42:59.58961' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869381;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:00.593185' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869382;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:01.589845' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869383;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:02.592592' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001349  Lock_time: 0.001147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869384;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869384;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:03.592949' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869385;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:04.589816' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869386;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:05.590493' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869387;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1088  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869387;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1088  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000230  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869387;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:43:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1089  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869388;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1089  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869388;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869388;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:07.590007' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001418  Lock_time: 0.001161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:07.59026' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000800  Lock_time: 0.000521  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869389;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001224  Lock_time: 0.001066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869389;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:08.590534' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869390;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:09.590002' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869390;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:43:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869391;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:10.590474' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:10.590211' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869392;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869392;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001298  Lock_time: 0.001053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869393;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:12.592054' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001177  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869393;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:12.592222' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869394;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869396;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:15.590288' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000781  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869397;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1092  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869397;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1092  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869397;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:43:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1093  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869398;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1093  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869398;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869398;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:43:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869399;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:18.589824' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000382  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869400;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869400;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:19.589907' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869401;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:20.590245' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869402;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:21.592141' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:21.591981' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869403;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:22.592098' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869404;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:23.592664' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869404;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:23.592942' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869405;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:24.589724' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869405;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:43:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869406;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:25.59249' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869407;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:26.59256' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1096  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869407;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1096  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869407;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:43:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1097  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869408;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1097  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869408;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869408;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000401  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869408;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:27.590819' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869409;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:28.589683' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000998  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:29.589475' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869410;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:29.589498' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869411;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:30.59308' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.000952  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869412;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869412;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:31.593117' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869413;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000589  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869414;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:33.590759' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869415;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869415;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:34.5928' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869416;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001186  Lock_time: 0.001013  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869416;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:35.589583' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869417;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001022  Lock_time: 0.000889  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869417;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1101  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869417;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1101  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869417;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:43:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1102  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869418;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1102  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869418;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869418;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:37.592538' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000714  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869419;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:38.59309' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001034  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869419;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:39.590307' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869421;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:40.592619' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000858  Lock_time: 0.000648  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869422;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869423;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869424;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:43.5902' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:43.590246' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869425;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:44.592668' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869426;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869427;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:46.592963' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1105  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869427;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1105  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869427;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:43:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1106  Schema:   QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869428;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1106  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869428;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869428;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001742  Lock_time: 0.001317  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869428;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:43:48.795'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:43:48.795')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:43:48.795')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:43:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869429;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:48.590027' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869430;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869430;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:49.590097' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869431;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869431;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:50.590166' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869432;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:51.590848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000477  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:52.590106' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869433;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:52.590624' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001953  Lock_time: 0.001307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869434;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869434;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:53.589987' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001147  Lock_time: 0.000833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869435;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:54.590113' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001460  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869435;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:43:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869436;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:55.590012' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001393  Lock_time: 0.001233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869436;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:55.590155' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000795  Lock_time: 0.000607  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869437;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1109  Schema:   QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000265  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869437;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1109  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869437;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:43:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1110  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869438;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1110  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869438;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:57.59074' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869438;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:57.590707' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:43:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:58.59036' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000908  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869439;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:44:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869440;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:43:59.590032' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869441;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:00.589962' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000747  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869442;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:01.590101' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869443;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:02.593543' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869444;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:03.589714' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869444;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:03.590143' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869445;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:04.58989' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000332  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869446;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:05.590007' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869447;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000378  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869447;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:06.591082' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1113  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869447;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1113  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869447;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:44:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1114  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869448;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1114  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869448;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869448;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869448;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869448;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:07.592819' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002967  Lock_time: 0.001631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869449;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:44:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869450;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869450;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001115  Lock_time: 0.000982  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869450;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:09.592017' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869451;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:10.592853' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869451;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:10.59284' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000794  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869452;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:44:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869453;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:12.590928' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000999  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869454;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:13.590247' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869455;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:14.592921' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:15.589638' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1117  Schema:   QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000234  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869457;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1117  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869457;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:44:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1118  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869458;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1118  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869458;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869458;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:17.589811' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000275  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869458;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:17.590193' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869459;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869459;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:18.590055' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869460;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:19.593203' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869461;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:20.592683' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.000996  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869462;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:21.592942' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001209  Lock_time: 0.001018  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869462;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:21.592958' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869463;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:22.592439' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869463;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:22.592605' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869464;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:23.590747' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869464;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:23.590797' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869465;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:24.590621' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000543  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869466;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:25.589513' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001044  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869467;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:26.590287' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869467;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:26.590656' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1121  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869467;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1121  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869467;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:44:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1122  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869468;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1122  Schema:   QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000270  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869468;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869468;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869468;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:27.590453' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869469;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001416  Lock_time: 0.001218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869469;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:28.591039' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869470;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869471;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:30.589887' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000703  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869472;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869472;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:31.589769' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869473;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:32.59045' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869474;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:33.593633' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869475;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:34.589515' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869476;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:35.590185' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869477;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869477;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:36.593346' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1125  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869477;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1125  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869477;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:44:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1126  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869478;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1126  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869478;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869478;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:44:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869479;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:38.590188' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869480;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:39.592085' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:39.592585' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869481;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001169  Lock_time: 0.000978  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:40.590419' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869482;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869483;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:42.590209' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001131  Lock_time: 0.000949  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869485;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:44.590681' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869486;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869486;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869487;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:46.590404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:46.590527' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1129  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869487;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1129  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869487;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:44:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1130  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869488;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1130  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869488;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869488;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:47.592665' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869488;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:47.592479' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002516  Lock_time: 0.001732  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869488;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:44:48.796'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:44:48.796')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:44:48.796')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:44:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869489;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:48.589671' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869490;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:49.592951' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869491;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:50.58976' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:51.590301' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869493;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869494;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:53.589951' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869495;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869496;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:55.590082' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869496;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:55.590041' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000412  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869497;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:56.589989' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001270  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869497;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1133  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869497;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1133  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869497;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:44:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1134  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869498;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1134  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869498;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000614  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869498;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:57.58998' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:44:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:58.591472' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869499;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:58.591337' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869500;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869500;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:44:59.593568' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869501;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:00.592464' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869502;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:01.592289' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869503;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:02.59015' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869504;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:03.590819' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869504;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:03.589905' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001245  Lock_time: 0.001070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869505;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001279  Lock_time: 0.001047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869506;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:05.589809' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001517  Lock_time: 0.001247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:05.589525' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869507;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869507;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:06.593288' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1137  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869507;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1137  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869507;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:45:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1138  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869508;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1138  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000063  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869508;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000411  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869508;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869509;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:08.59251' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869510;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:09.590239' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869510;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:45:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869511;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869511;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:10.592353' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869512;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869513;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869513;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:12.590059' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869514;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:13.590761' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000545  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869515;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:14.589921' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:15.592651' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001213  Lock_time: 0.001044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869517;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869517;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:16.592391' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1141  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869517;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1141  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869517;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:45:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1142  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869518;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1142  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869518;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869518;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:17.589613' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869519;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:18.590085' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001004  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:19.589698' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001151  Lock_time: 0.000911  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869521;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:20.589924' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869522;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869523;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869524;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:23.589851' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:24.589621' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869525;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:24.590229' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869526;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:25.590967' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869527;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:26.591124' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1145  Schema:   QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000259  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869527;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1145  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869527;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:45:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1146  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869528;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1146  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869528;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869528;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:27.592968' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869529;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:29.589623' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002095  Lock_time: 0.001443  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869531;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869532;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:31.592607' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:31.592642' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:32.592456' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869534;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869534;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:33.589727' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:34.593007' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869536;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869536;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869537;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:36.591054' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1149  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869537;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1149  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869537;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:45:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1150  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869538;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1150  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869538;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869538;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869538;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:37.591013' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:38.592254' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869540;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:39.590087' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869541;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:40.591129' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001232  Lock_time: 0.001003  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:41.589564' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869543;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869543;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:42.590704' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869544;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:43.589947' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869544;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:43.589987' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000464  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869545;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869545;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869546;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:45.59269' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869547;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1153  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869547;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1153  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869547;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:45:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1154  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869548;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1154  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869548;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869548;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869548;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:47.593306' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001833  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869548;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:45:48.795'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:45:48.795')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:45:48.795')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:45:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869549;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:48.590839' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869550;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:49.590762' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:49.590245' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000541  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869551;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:50.590112' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:51.589878' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869553;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869553;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:52.591546' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869554;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869555;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:54.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869556;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869557;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:56.590283' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1157  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869557;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1157  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869557;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:45:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1158  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869558;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1158  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869558;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869558;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:57.592484' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:45:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869559;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:46:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869560;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:45:59.592184' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869561;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869561;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:00.592514' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000401  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869562;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:01.589854' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869562;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:01.590033' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869563;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:02.592494' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:03.590118' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869565;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869566;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:05.590191' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869567;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:06.589804' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1161  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869567;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1161  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869567;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:46:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1162  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869568;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1162  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869568;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869568;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:07.589768' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000332  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869569;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:08.590153' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869570;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869571;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869572;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:11.592451' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869573;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:12.592672' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869573;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:12.592607' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869574;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869574;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:13.592643' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:14.589611' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869576;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:15.592752' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000442  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869577;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:16.592336' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869577;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1165  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869577;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1165  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869577;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:46:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1166  Schema:   QC_hit: No
# Query_time: 0.002394  Lock_time: 0.002292  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869578;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1166  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869578;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869578;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:17.592557' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000950  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:18.592468' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:19.592292' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869580;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:19.592471' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869581;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869581;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:20.592714' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869582;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:21.592517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869582;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:21.592834' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869583;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869583;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:22.589714' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:23.59267' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000945  Lock_time: 0.000778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869585;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:24.592339' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000607  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869585;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:24.592286' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.000956  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869586;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:25.592217' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869587;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869587;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:26.591993' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1169  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869587;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1169  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869587;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:46:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1170  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869588;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1170  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869588;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:27.589697' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869589;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:28.58945' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:29.589608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869591;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:30.59316' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869592;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000901  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869593;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:32.592439' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000646  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869594;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869594;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869595;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:34.59249' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869596;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000984  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:35.590318' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869597;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:36.592429' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1173  Schema:   QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000298  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869597;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1173  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869597;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:46:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1174  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869598;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1174  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869598;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000454  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869598;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:46:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869599;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869599;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:38.59036' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000466  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869600;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869601;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:40.593138' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:41.589563' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869602;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:41.589579' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869603;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:42.592643' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869603;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:42.592488' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869604;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002772  Lock_time: 0.002589  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869604;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:43.592586' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:43.592407' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869605;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:44.592219' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869606;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001417  Lock_time: 0.001154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869606;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:45.592623' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869607;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:46.58946' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1177  Schema:   QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000277  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869607;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1177  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869607;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:46:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1178  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869608;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1178  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869608;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:47.592396' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002312  Lock_time: 0.001617  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869608;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:46:48.798'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:46:48.798')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:46:48.798')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:46:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869609;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:49.589728' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869610;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:49.589504' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869611;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:50.590413' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869612;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:51.589692' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:52.590316' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869614;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:53.592102' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869614;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:53.592159' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869615;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869616;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:55.592147' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000883  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869617;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869617;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:56.592827' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1181  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869617;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1181  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869617;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:46:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1182  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869618;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1182  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869618;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000623  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869618;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:57.592046' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:57.592099' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:46:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869619;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:47:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869620;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:46:59.592497' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:00.590178' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869621;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:00.590789' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:01.589456' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869623;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:02.592314' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869624;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:03.594234' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869625;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:04.591519' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:05.591127' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869627;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1185  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869627;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1185  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869627;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:47:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1186  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869628;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1186  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869628;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869628;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869629;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:08.592479' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869630;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:09.592497' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869630;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:09.592681' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869631;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:10.589792' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001182  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869631;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:10.590443' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869632;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869632;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:11.589502' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000455  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869633;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:12.589965' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869634;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:13.590288' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869634;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:13.590119' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869635;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869635;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:14.592101' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869636;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869636;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:15.59313' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869636;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:15.592363' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869637;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:16.589796' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001857  Lock_time: 0.000352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869637;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1189  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869637;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1189  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869637;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:47:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1190  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869638;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1190  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869638;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000877  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869638;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:47:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869639;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:18.589652' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:19.591711' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869640;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:19.593353' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869641;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869641;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:20.592745' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869642;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:21.592718' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869643;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869643;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:22.589428' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869644;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:23.590928' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001030  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869645;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869645;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:24.591442' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869646;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:25.592959' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:25.593277' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869647;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:26.590121' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1193  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869647;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1193  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869647;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:47:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1194  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869648;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1194  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869648;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869648;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:27.59075' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000349  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869649;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:28.592245' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869650;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869650;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:29.590438' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869651;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:30.592415' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000770  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869652;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869652;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:31.592115' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000486  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869653;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:32.592728' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869654;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:33.58989' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869655;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:34.590129' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:35.590075' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869657;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:36.590092' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1197  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869657;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1197  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869657;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:47:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1198  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869658;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1198  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869658;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001585  Lock_time: 0.001043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869658;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001410  Lock_time: 0.001198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869658;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:37.589836' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001041  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:38.5903' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001212  Lock_time: 0.000939  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869659;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:38.589806' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869660;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:39.589433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869660;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:39.589579' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:40.592507' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:41.592423' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000476  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869662;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:42.589441' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869663;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:42.589548' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:43.592811' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869665;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869665;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:44.589388' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:45.59322' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869667;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:46.589826' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:46.589618' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1201  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869667;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1201  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869667;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:47:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1202  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869668;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1202  Schema:   QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000831  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869668;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869668;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:47.589709' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002717  Lock_time: 0.001977  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869668;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:47:48.796'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:47:48.796')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:47:48.796')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:47:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:48.592628' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000401  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869669;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:48.592401' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869670;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:49.592988' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869670;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:49.59283' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869671;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869671;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:50.589879' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:51.59062' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869673;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869673;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:52.592598' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869674;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:53.592727' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869674;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869675;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:54.589735' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869676;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:55.589959' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000630  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869677;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869677;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:56.58995' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1205  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869677;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1205  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869677;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:47:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1206  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869678;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1206  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869678;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001292  Lock_time: 0.001076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869678;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869678;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:57.590274' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:47:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869679;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:47:58.59229' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000701  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869680;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869681;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:00.592526' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001543  Lock_time: 0.001314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869682;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:01.59164' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000878  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:02.59258' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869684;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:03.592653' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869685;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869686;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:05.592646' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869687;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001279  Lock_time: 0.001155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1211  Schema:   QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869687;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1211  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869687;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:48:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1212  Schema:   QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000263  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869688;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1212  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869688;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869688;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:07.592425' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001262  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:08.592882' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869689;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:08.592854' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001166  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869690;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869690;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:09.589708' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869691;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:10.589974' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869692;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:11.589661' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869692;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:11.589927' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:12.589848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002648  Lock_time: 0.002413  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869694;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869695;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:15.592511' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869697;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1215  Schema:   QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000784  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869697;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1215  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869697;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:48:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1216  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869698;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1216  Schema:   QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000260  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869698;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000552  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869698;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869698;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:17.592774' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869699;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:18.589562' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869700;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:19.59287' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869700;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:19.592583' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869701;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869702;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:21.589664' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869702;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:21.589707' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869703;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:22.592597' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869704;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869704;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869705;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:24.589549' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001312  Lock_time: 0.001033  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869705;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:24.590138' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869706;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001387  Lock_time: 0.001132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869707;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:26.592072' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1219  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869707;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1219  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869707;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:48:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1220  Schema:   QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000343  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869708;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1220  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869708;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869708;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:27.592541' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001505  Lock_time: 0.001199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869708;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001344  Lock_time: 0.001121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869709;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:28.592832' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869710;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:29.592448' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869711;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:30.592577' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001184  Lock_time: 0.000962  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869712;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:31.592305' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869712;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000546  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869713;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:32.592668' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001271  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869713;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:32.592465' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000405  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869714;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869715;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:34.589311' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869716;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:35.592503' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869717;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002654  Lock_time: 0.002533  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869717;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869717;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:36.592461' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1223  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869717;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1223  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869717;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:48:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1224  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869718;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1224  Schema:   QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869718;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000447  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869718;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001181  Lock_time: 0.001039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869718;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:37.592162' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869719;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869719;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:38.592028' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869720;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:39.589566' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869721;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:40.59242' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000570  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869722;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869723;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:42.592401' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001033  Lock_time: 0.000884  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869724;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:43.592641' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000962  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869724;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:43.592861' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869725;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869725;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:44.589577' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:45.592471' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869727;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:46.592264' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869727;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:46.592494' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1227  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869727;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1227  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869727;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:48:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1228  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869728;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1228  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869728;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869728;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:47.592702' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869728;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:47.592765' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869728;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:48:48.797'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:48:48.797')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:48:48.797')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:48:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869729;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:48.589418' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869730;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:49.592968' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869731;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:50.590095' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869731;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:50.58991' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869732;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:51.59011' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001522  Lock_time: 0.000950  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869733;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:48:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869734;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:53.589559' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869735;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:54.592443' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869736;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:55.591794' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869737;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:56.589571' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869737;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:56.589707' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1231  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869737;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1231  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869737;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:48:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1232  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869738;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1232  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869738;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869738;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:57.592744' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:48:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869739;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:58.589579' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869740;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:48:59.589647' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869741;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:00.589887' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001398  Lock_time: 0.001156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869742;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869742;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:01.589457' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869743;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:02.592549' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869744;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:03.592566' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869745;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000699  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869745;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869745;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:04.592867' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869746;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:05.589327' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869747;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:06.592304' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1235  Schema:   QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000260  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869747;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1235  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869747;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:49:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1236  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869748;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1236  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869748;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000405  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869748;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869749;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:08.592675' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001336  Lock_time: 0.001143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869750;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:09.592345' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001604  Lock_time: 0.001449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869750;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869751;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:10.59194' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001167  Lock_time: 0.000407  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869752;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:49:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869753;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:12.590075' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869754;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:13.589872' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869755;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:14.589513' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869756;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:15.592611' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869757;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869757;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:16.589401' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1239  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869757;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1239  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869757;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:49:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1240  Schema:   QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000262  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869758;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1240  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869758;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869758;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869759;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:18.589404' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869760;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:19.593566' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001180  Lock_time: 0.000986  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869761;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:20.592324' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001288  Lock_time: 0.001133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869761;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001249  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869762;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:21.592422' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001547  Lock_time: 0.001230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869762;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:21.5923' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869763;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:22.592377' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869764;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:23.592322' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869765;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869765;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:24.592071' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869766;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001571  Lock_time: 0.001349  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:25.590983' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869767;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1243  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869767;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1243  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869767;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:49:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1244  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869768;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1244  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869768;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869768;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:27.590191' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869769;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869770;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869770;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:29.589955' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869771;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:30.589926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869772;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:49:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000386  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869773;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:32.590204' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869774;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:33.590287' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869775;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:34.592545' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869775;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:34.592738' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869776;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:35.58956' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:37
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1247  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869777;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1247  Schema:   QC_hit: No
# Query_time: 0.000135  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869777;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:49:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1248  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869778;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1248  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869778;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869778;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:37.592112' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869779;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:38.589514' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869780;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:39.592981' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001678  Lock_time: 0.001464  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:40.592287' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001246  Lock_time: 0.001028  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869781;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:40.592043' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869782;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869782;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:41.589532' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869783;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:42.589436' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869783;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:42.589679' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869784;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:43.592321' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869784;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:43.592236' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001129  Lock_time: 0.000945  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869785;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:44.592119' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000568  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869786;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:45.592348' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869786;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:45.592481' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869787;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869787;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000866  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869787;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:46.593152' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1251  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869787;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1251  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869787;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:49:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1252  Schema:   QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869788;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1252  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869788;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000612  Lock_time: 0.000405  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869788;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869788;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:47.592326' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002707  Lock_time: 0.001888  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869788;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:49:48.796'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:49:48.796')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:49:48.796')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:49:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869789;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:48.591957' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:48.592155' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869790;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869791;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869791;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:50.589691' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869792;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:51.592524' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000935  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869793;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869793;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:52.593002' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869794;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001770  Lock_time: 0.001394  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869794;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:53.590472' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001170  Lock_time: 0.000945  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869795;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:54.592242' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869796;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869797;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:56.589844' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1255  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869797;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1255  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869797;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:49:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1256  Schema:   QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869798;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1256  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869798;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001193  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869798;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869798;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:57.589784' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:49:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000381  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869799;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:50:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000324  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869800;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:49:59.592395' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869801;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:00.589513' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869802;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:01.592508' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001231  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869803;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001354  Lock_time: 0.001054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869804;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:03.590304' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869805;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:04.589823' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:05.589672' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869807;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869807;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:06.5959' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1259  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869807;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1259  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869807;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:50:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1260  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869808;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1260  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869808;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000514  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869808;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:50:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869809;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001332  Lock_time: 0.001038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869810;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:09.589427' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869811;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869811;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:10.592235' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869812;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:11.592185' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869813;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869813;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:12.58948' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869814;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:13.592401' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869815;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869815;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:14.592419' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:15.589353' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869817;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:16.593107' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1263  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869817;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1263  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869817;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:50:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1264  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869818;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1264  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869818;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869818;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:17.592678' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000402  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869819;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:18.589614' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869820;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:19.589639' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869821;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869822;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:21.589598' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869823;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:22.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000324  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869824;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001261  Lock_time: 0.000999  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869824;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:23.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869825;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:24.592537' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001288  Lock_time: 0.001042  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869825;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:24.592824' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869826;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000566  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869826;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:25.592714' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869827;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:26.592463' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1267  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869827;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1267  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869827;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:50:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1268  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869828;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1268  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869828;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869828;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:27.592457' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869828;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:27.592407' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001315  Lock_time: 0.001001  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869829;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001167  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:29.592406' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:30.592028' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869831;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:30.592219' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869832;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:50:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869833;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:32.589618' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869834;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:33.592408' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869834;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:33.592274' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000665  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869835;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869835;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:34.592161' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001355  Lock_time: 0.001101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869835;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869836;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:35.592624' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869837;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:36.592554' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869837;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:36.592902' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1271  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869837;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1271  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869837;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:50:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1272  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869838;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1272  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869838;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001598  Lock_time: 0.001446  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869838;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000551  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869838;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:37.592842' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001420  Lock_time: 0.001252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869839;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:38.592829' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001444  Lock_time: 0.001264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869839;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:38.592536' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869840;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:39.589537' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869841;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869841;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:40.589611' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869842;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869843;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:42.592363' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869843;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:42.592402' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869844;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:43.592328' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869844;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:43.592628' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001135  Lock_time: 0.001003  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869845;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000660  Lock_time: 0.000440  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869845;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:44.592453' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000759  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869846;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:45.59254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001170  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869846;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:45.592659' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001097  Lock_time: 0.000902  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:46.592841' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869847;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:46.593288' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1275  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869847;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1275  Schema:   QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000279  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869847;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:50:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1276  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869848;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1276  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869848;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869848;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869848;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:47.589328' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002447  Lock_time: 0.001766  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869848;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:50:48.796'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:50:48.796')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:50:48.796')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:50:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869849;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:48.592512' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869850;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:49.592672' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000805  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869851;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869851;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:50.592193' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001086  Lock_time: 0.000808  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869852;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:51.592201' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001323  Lock_time: 0.001087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869853;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869853;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:52.592635' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001104  Lock_time: 0.000885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869854;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:53.592458' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:54.592405' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869856;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:55.592469' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869857;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:56.589473' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1279  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869857;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1279  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869857;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:50:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1280  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869858;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1280  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869858;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869858;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:57.592526' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:50:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869859;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869859;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:58.592498' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000563  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869860;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:50:59.592259' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001200  Lock_time: 0.001016  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869861;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:00.592071' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869862;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:01.591985' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869863;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:02.589773' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869864;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:51:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:04.592442' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000342  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869866;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869866;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:05.592484' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000632  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869867;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1283  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869867;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1283  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869867;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:51:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1284  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869868;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1284  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869868;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001285  Lock_time: 0.001085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869868;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:07.592471' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:08.592263' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001261  Lock_time: 0.001108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869869;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:08.592488' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001622  Lock_time: 0.001483  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869870;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:09.592967' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001299  Lock_time: 0.001134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869870;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:09.59301' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869871;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:10.589784' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869872;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:11.589736' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000361  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869873;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:12.592243' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869874;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:13.592416' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869874;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:13.592326' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000966  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869875;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:14.592241' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869875;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:14.592264' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869876;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001258  Lock_time: 0.001163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:15.592297' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001540  Lock_time: 0.001434  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869877;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:16.591753' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1287  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869877;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1287  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869877;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:51:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1288  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869878;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1288  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869878;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869878;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000427  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869878;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:17.58966' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869879;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:18.592367' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000838  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869880;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:19.591899' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000505  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869880;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:19.591869' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000340  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869881;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869881;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:20.589735' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869882;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:21.592505' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869883;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000709  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:22.592315' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.001056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869884;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869885;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:24.59229' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869885;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:24.592215' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001429  Lock_time: 0.001251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869886;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:25.592446' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000685  Lock_time: 0.000482  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869887;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869887;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:26.592635' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1291  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869887;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1291  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869887;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:51:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1292  Schema:   QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000245  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869888;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1292  Schema:   QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869888;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000567  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869888;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:27.592515' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869889;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869889;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:28.592103' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869890;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869890;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:29.589805' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869891;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:30.592759' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869892;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869892;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869892;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:31.592436' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000777  Lock_time: 0.000520  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869893;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:32.592732' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869894;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:33.58982' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869895;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001192  Lock_time: 0.000995  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869896;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:35.589661' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001398  Lock_time: 0.001172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869896;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:36.592849' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1295  Schema:   QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869897;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1295  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869897;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:51:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1296  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869898;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1296  Schema:   QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000286  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869898;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869898;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:37.58948' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869899;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869899;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:38.592591' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001332  Lock_time: 0.001149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869900;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:39.592308' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001331  Lock_time: 0.001167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869900;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869901;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001113  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:40.592272' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869902;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:41.592192' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:41.592284' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869903;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:42.591882' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869903;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:42.591941' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869904;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:43.589532' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:45.589384' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869907;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:46.592322' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1299  Schema:   QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000246  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869907;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1299  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869907;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:51:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1300  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869908;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1300  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869908;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869908;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:47.592191' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001638  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869908;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:51:48.796'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:51:48.796')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:51:48.796')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:51:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869909;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:48.592254' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.000996  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869910;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:49.591844' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000985  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869910;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:49.591806' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869911;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000528  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869912;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:51.592802' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869912;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:51.592709' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869913;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:52.590161' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:52.590098' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869914;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:53.593297' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001004  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869915;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001357  Lock_time: 0.001080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869916;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:55.592478' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001342  Lock_time: 0.001080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869916;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:55.59263' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869917;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:56.592668' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1303  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869917;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1303  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869917;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:51:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1304  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869918;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1304  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869918;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:57.590039' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000453  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:57.590201' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:51:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000780  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869919;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:52:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869920;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:51:59.589593' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:00.593062' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869922;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:01.589744' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869922;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:01.58968' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869923;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:02.59292' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869924;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869924;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:03.589764' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869925;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:04.589897' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001173  Lock_time: 0.000738  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869926;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:05.589922' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869927;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1307  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000230  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869927;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1307  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869927;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:52:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1308  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869928;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1308  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869928;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869928;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:07.589601' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:08.592689' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869929;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:08.592619' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869930;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869930;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:09.592807' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869931;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869931;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:10.589457' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869932;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:12.591866' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869933;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:12.592056' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869934;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869934;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:13.589932' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869936;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:15.589802' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869936;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:15.589682' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869937;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869937;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:16.593707' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1311  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869937;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1311  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869937;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:52:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1312  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869938;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1312  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869938;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869938;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:17.589875' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001311  Lock_time: 0.000673  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869939;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:52:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869940;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:19.592515' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000910  Lock_time: 0.000712  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869941;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869941;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:20.592625' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869942;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:21.592645' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869943;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:22.592311' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001306  Lock_time: 0.001075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869943;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869944;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:23.592286' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869945;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869946;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:25.592138' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000829  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869947;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869947;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:26.59215' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1315  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869947;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1315  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869947;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:52:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1316  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869948;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1316  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869948;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004590  Lock_time: 0.003408  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869948;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:27.590063' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004748  Lock_time: 0.004432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869948;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:27.590639' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000942  Lock_time: 0.000372  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869949;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001523  Lock_time: 0.001290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:28.59035' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001279  Lock_time: 0.001025  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869950;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:29.591413' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000355  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869951;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869952;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:31.592596' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869953;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:32.589985' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869954;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:33.590246' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869955;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:34.590167' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869956;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:35.590537' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869957;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:36.589738' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001594  Lock_time: 0.000969  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869957;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1321  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869957;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1321  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869957;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:52:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1322  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869958;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1322  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869958;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001225  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869958;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869959;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:38.59074' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869959;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:38.590741' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869960;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869960;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:39.592428' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869961;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:40.592685' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:40.592686' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001205  Lock_time: 0.001014  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869962;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869963;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:42.590254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:42.590448' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869964;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:43.592184' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869965;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000349  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869966;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:45.592541' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001510  Lock_time: 0.001215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869966;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:46.592401' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869967;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:46.592212' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1325  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869967;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1325  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869967;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:52:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1326  Schema:   QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869968;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1326  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869968;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869968;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:47.592741' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001282  Lock_time: 0.000599  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646869968;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:52:48.797'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:52:48.797')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:52:48.797')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:52:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001286  Lock_time: 0.001057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646869969;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:48.592753' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:48.592729' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869970;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:49.592582' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869971;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:50.592446' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:51.592606' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869972;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:51.592465' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001127  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869973;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869973;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:52.593276' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869974;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:54.589413' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869976;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:55.592467' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000899  Lock_time: 0.000761  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869977;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869977;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:56.592216' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1329  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869977;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1329  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869977;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:52:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1330  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869978;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1330  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869978;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869978;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:57.592187' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:52:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001304  Lock_time: 0.001201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:58.592021' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869980;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:59.589626' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869980;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:52:59.589683' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869981;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:00.592692' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869982;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:01.592475' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000327  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869982;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:01.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869983;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:02.592502' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000393  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869984;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:03.592326' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.000990  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869985;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:04.591963' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869985;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:04.592002' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869986;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:05.5897' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869987;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:06.592456' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1333  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869987;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1333  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869987;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:53:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1334  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869988;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1334  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869988;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869988;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:07.59328' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869989;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:08.592542' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001107  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869990;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:09.592393' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001189  Lock_time: 0.000951  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869990;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:09.592188' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869991;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869991;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:10.59189' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869992;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:11.589637' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869993;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:12.592907' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001175  Lock_time: 0.000980  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869994;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:13.592435' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001081  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:13.592482' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869995;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000685  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869995;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:14.592499' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869996;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:15.592169' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869997;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:16.592178' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1337  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869997;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1337  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869997;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:53:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1338  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646869998;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1338  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646869998;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869998;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646869999;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:18.592183' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:19.591823' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870001;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:20.589495' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:20.589563' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870002;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:21.592531' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000788  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870003;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870003;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:22.592348' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870004;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:23.592789' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001120  Lock_time: 0.000986  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870005;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870005;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:24.592391' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000683  Lock_time: 0.000517  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870006;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:25.592198' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000879  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870006;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001131  Lock_time: 0.001019  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870007;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:26.592775' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1341  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1341  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:53:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1342  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870008;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1342  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870008;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870008;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870008;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:27.592576' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000477  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870009;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:28.592066' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000519  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870009;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:28.59192' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870011;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:30.592644' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000622  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870012;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870012;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:31.59275' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:32.592617' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001026  Lock_time: 0.000803  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870013;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:32.592408' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001706  Lock_time: 0.001475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870014;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:33.592261' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870015;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:34.591952' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870015;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:34.592069' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870016;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:35.589757' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870016;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:35.589703' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:36.590911' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870017;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1345  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1345  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000251  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:53:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1346  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870018;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1346  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870018;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870018;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870018;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:37.592751' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870019;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:38.59253' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001120  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870019;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:38.592486' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870020;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870020;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:39.592225' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870021;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:40.592106' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870022;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:41.58991' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870023;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:42.592382' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000818  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870024;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870024;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:43.592263' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000417  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870025;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:44.592071' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:45.589982' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870027;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:46.59148' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1349  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1349  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:53:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1350  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1350  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870028;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:47.592657' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001297  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870028;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:53:48.797'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:53:48.797')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:53:48.797')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:53:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001166  Lock_time: 0.001011  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870029;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:48.592161' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000859  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870029;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:48.592251' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870030;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:49.591901' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001037  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870030;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:49.592089' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870031;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:50.589659' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870032;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:51.59265' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870033;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:52.589557' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870033;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:52.589533' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870034;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870034;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:53.593281' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:54.591986' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870036;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870036;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:55.589915' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001000  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870037;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:56.592442' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1353  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1353  Schema:   QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000350  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:53:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1354  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1354  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:57.592141' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:53:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870039;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:58.592365' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870040;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:59.592002' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870040;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:53:59.592021' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870041;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:54:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870042;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:01.592612' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870042;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:01.592566' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000862  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870043;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:54:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:03.589712' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:03.589842' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870045;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870045;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:04.592966' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:05.589956' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870047;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:06.58971' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1357  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1357  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:54:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1358  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1358  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870048;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:07.590137' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870048;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:07.589879' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:08.589371' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001051  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870050;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870050;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:09.592363' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:09.592334' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870051;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:10.592161' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000705  Lock_time: 0.000488  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870052;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:11.592186' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001089  Lock_time: 0.000863  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870053;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:12.592199' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000486  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870053;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:12.592353' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001475  Lock_time: 0.001277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870054;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870055;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:14.591896' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870056;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870057;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:16.593909' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1361  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1361  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:54:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1362  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1362  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870058;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:17.589791' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001457  Lock_time: 0.000643  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870058;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:54:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870059;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:18.590248' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870060;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870061;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:20.592663' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870062;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:21.592777' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870063;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:22.5897' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870064;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:23.592933' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870065;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870065;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:24.589343' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870066;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:25.592393' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:27
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1365  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1365  Schema:   QC_hit: No
# Query_time: 0.000109  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:54:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1366  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1366  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000770  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870068;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:27.592348' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870069;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:28.592207' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870070;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000963  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870070;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:29.592125' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870071;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:30.589726' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:31.589515' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870073;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:32.592565' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870073;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:32.592373' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000631  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870074;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:33.592335' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000921  Lock_time: 0.000743  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870075;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:34.592079' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001441  Lock_time: 0.001242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870076;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870077;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000568  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870077;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:36.589836' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1369  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1369  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:54:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1370  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1370  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:37.589764' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:38.58959' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870080;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:39.592455' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870080;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870081;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:40.592311' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870081;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:40.592402' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870082;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001247  Lock_time: 0.001114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870082;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:41.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870083;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870084;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:43.589833' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001616  Lock_time: 0.001450  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870085;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:45.592298' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870087;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:46.592329' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1373  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1373  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:54:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1374  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1374  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870088;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000600  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870088;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:47.592279' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001287  Lock_time: 0.001150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870088;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000999  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870088;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:54:48.798'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:54:48.798')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:54:48.798')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:54:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870089;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:48.589505' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000699  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870089;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:54:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870090;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:49.592336' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001275  Lock_time: 0.001146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:50.591975' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000381  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870092;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:52.592391' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000632  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870094;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:53.592014' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001170  Lock_time: 0.000970  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870094;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:54.589772' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870095;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:54.589778' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870096;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:55.589405' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870097;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:56.592193' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1377  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1377  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:54:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1378  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1378  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000368  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870098;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:57.592204' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:54:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:58.592674' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870099;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:58.592458' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870100;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001449  Lock_time: 0.001122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870100;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:54:59.592201' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001549  Lock_time: 0.001273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:00.592041' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870102;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870102;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:01.589651' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870103;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:55:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870104;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:03.589612' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870105;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:04.592538' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:05.592441' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870106;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:05.592365' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000873  Lock_time: 0.000715  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870107;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:06.592049' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870107;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:06.592255' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1381  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1381  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:55:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1382  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1382  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000959  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870108;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:07.592096' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000831  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870108;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:07.592167' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001080  Lock_time: 0.000951  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870109;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:08.592396' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870110;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:09.592459' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:10.592235' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870111;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:10.592325' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870112;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870112;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:11.592752' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000315  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870113;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:12.592169' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001000  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870113;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:12.592095' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001315  Lock_time: 0.001055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870114;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:13.592131' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870115;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:55:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870116;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:15.592699' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870117;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000527  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870117;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:16.591097' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1385  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1385  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:55:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1386  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1386  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000342  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870118;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:17.59255' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000355  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870119;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:55:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:19.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870121;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:20.592528' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000554  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870121;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:20.5924' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870122;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:21.592571' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870122;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:21.592495' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001284  Lock_time: 0.001074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870123;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001225  Lock_time: 0.000992  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:23.592411' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870125;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870126;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001210  Lock_time: 0.000948  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870127;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:26.592175' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1389  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1389  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:55:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1390  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1390  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000067  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001036  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870128;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:27.592064' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000412  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870129;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870129;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:28.589733' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870130;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:29.59233' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000636  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870131;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870132;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:31.589762' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000364  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870133;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870134;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:33.592516' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870134;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:33.592448' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000791  Lock_time: 0.000609  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870135;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000555  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:35.592483' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870136;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:35.59245' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870137;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001388  Lock_time: 0.001183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870137;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:36.592454' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1395  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1395  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:55:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1396  Schema:   QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000893  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1396  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001402  Lock_time: 0.001261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870138;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:37.59258' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870139;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:38.592253' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870140;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:39.591919' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870141;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870141;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:40.589489' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870142;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:41.592423' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870142;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:41.592257' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870143;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:55:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:43.589644' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870145;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:44.592255' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870145;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:44.592415' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870146;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:45.592238' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870147;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:46.592018' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001265  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870147;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1402  Schema:   QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1402  Schema:   QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000440  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:55:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1403  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1403  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870148;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:47.589984' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:47.589772' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.003127  Lock_time: 0.002107  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870148;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:55:48.798'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:55:48.798')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:55:48.798')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:55:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000630  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870149;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:48.589732' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:48.589532' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870150;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:49.592444' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870151;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:50.592104' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870152;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:51.589778' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870152;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:51.589926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870153;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:52.5897' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000979  Lock_time: 0.000766  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870154;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:53.589478' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001801  Lock_time: 0.001110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870154;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:55:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:54.592289' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870156;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:56.592224' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1409  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1409  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:55:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1410  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1410  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:57.59248' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:55:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870159;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:58.592659' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870159;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:55:58.592585' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870160;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870160;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000891  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870161;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:00.59283' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870162;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870163;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:02.589595' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870164;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:03.59257' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870164;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:03.592732' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870165;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000943  Lock_time: 0.000820  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870165;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:04.592488' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870166;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:05.592224' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001218  Lock_time: 0.000924  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:05.592439' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000577  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1413  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1413  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:56:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1414  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1414  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870168;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:07.59003' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870168;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:07.589935' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870169;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:08.589879' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870170;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:09.592649' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870170;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:09.592551' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870171;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870171;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:10.592281' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870171;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000712  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870172;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:11.592089' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870172;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:11.592383' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870173;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:12.592111' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870174;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:13.59224' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:13.592391' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870175;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:14.592321' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870176;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870176;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:15.589378' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870177;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:16.59289' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1420  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1420  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:56:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1421  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1421  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000382  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870178;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:17.589523' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870178;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:56:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870179;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:18.592814' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870180;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870180;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:19.592397' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870181;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:20.592556' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870182;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:21.59252' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870183;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:22.592601' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:22.592825' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.000985  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870184;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:23.592792' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870185;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:24.592294' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001352  Lock_time: 0.001187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870185;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:24.592661' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870186;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870186;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:25.589582' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870187;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:26.593019' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1426  Schema:   QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000326  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1426  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000238  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:56:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1427  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1427  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870188;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870188;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:27.592428' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870189;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:28.592281' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870189;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:28.592996' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870190;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:29.589637' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870190;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:29.589624' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870191;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:30.592821' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870191;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:30.592988' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870192;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870192;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:31.589524' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870193;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:32.592527' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870194;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870194;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:33.58969' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870195;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:34.589568' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002049  Lock_time: 0.001435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870196;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002677  Lock_time: 0.002432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870196;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:35.592997' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000879  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870197;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870197;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:36.589646' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1430  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1430  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:56:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1431  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1431  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870198;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:37.592457' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870199;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:38.592274' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001572  Lock_time: 0.000451  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870199;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001076  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870200;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870200;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:39.592053' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870201;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:40.589752' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870202;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:41.593137' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001108  Lock_time: 0.000942  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870203;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:42.592126' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870204;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:43.589876' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:44.589526' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870206;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:45.5918' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870207;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870207;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:46.592398' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1434  Schema:   QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000313  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1434  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:56:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1435  Schema:   QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000310  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1435  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000920  Lock_time: 0.000682  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870208;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:47.592205' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 675  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001200  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870208;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:56:48.798'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:56:48.798')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:56:48.798')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:56:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870209;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:48.59193' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870210;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:49.589511' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870210;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:49.589731' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870210;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:56:50.623'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:56:50.623')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:56:50.623')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:56:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870211;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:50.589451' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870211;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:50.589821' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870212;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:51.59227' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001434  Lock_time: 0.001213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870213;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:52.592024' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001401  Lock_time: 0.001206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870213;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:52.59215' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870214;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:53.58978' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870215;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:54.592569' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870216;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:55.59272' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870216;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:55.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000830  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870217;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000594  Lock_time: 0.000361  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870217;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:56.58964' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1438  Schema:   QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1438  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:56:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1439  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1439  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870218;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:57.592746' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:56:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870219;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:58.592249' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001308  Lock_time: 0.001183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870220;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001020  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870220;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:56:59.592072' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870221;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:00.589906' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870221;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:00.589976' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870222;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:01.592552' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870223;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870223;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:02.592609' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000628  Lock_time: 0.000449  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870224;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:03.592584' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870224;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870225;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:04.591508' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870226;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:05.592353' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870227;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:06.59232' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870227;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:06.592329' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1444  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870227;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1444  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870227;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:57:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1445  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870228;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1445  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870228;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870228;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:07.592049' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870229;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:08.59031' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870230;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:09.590277' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001211  Lock_time: 0.001011  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870231;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870232;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:11.592392' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870233;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001208  Lock_time: 0.000990  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870234;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:13.592212' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870234;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:13.592142' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000349  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870235;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:14.592005' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870235;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:14.591874' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870236;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:15.589546' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870237;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:16.592748' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1448  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870237;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1448  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870237;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:57:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1449  Schema:   QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000372  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870238;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1449  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870238;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000619  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870238;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:17.591978' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870239;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:18.589449' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870240;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:19.592393' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000548  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870241;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:20.59238' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:20.59236' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870242;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001321  Lock_time: 0.001151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870242;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870243;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001407  Lock_time: 0.001250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870243;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870244;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:23.590282' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870244;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:23.590507' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870245;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:24.592176' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870246;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870247;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:26.592398' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1454  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870247;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1454  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870247;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:57:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1455  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870248;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1455  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870248;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870248;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:28.592457' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000448  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870249;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:28.592565' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001465  Lock_time: 0.001257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870250;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:29.592361' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001639  Lock_time: 0.001375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870250;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:29.592511' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870251;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:30.592428' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000638  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870251;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:30.59272' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870252;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:31.592261' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870253;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:32.592127' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870254;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:33.59192' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000459  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870254;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000379  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:34.589843' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870256;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:35.58957' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:35.58952' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870257;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:36.589608' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870257;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:36.589685' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1462  Schema:   QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870257;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1462  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870257;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:57:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1463  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870258;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1463  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870258;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000463  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870258;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:37.592815' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870259;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:38.589564' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000275  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870260;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:39.592612' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000654  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870261;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000909  Lock_time: 0.000803  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870261;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000897  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870263;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:42.592754' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001242  Lock_time: 0.000972  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870263;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:42.592792' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001141  Lock_time: 0.000579  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870264;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870264;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:43.589406' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:44.592749' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870266;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:45.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870267;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870267;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:46.5895' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1467  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870267;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1467  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870267;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:57:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1468  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870268;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1468  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870268;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870268;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:47.592556' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870269;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:48.592543' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870269;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:48.592406' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000756  Lock_time: 0.000586  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870270;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:49.592203' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870270;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:57:50.625'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:57:50.625')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:57:50.625')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:57:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001174  Lock_time: 0.000890  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:50.592105' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001543  Lock_time: 0.001228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:50.592069' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870272;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:51.589568' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870273;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:52.59259' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870274;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:53.592447' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:53.592561' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000615  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870275;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:54.592534' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000827  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870275;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:54.592494' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870276;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:55.592588' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870277;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:56.58949' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1472  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870277;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1472  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870277;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:57:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1473  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870278;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1473  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870278;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870278;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:57.592248' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:57:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870279;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870280;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:57:59.589585' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001410  Lock_time: 0.001154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870281;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:00.589438' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870282;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870283;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:02.592433' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870283;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:02.592578' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870284;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870284;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:03.589569' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870285;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:04.592503' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870286;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001386  Lock_time: 0.001233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870286;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870287;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:06.592172' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1479  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870287;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1479  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870287;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:58:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1480  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870288;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1480  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870288;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870288;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001537  Lock_time: 0.001359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870288;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:07.592265' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870289;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870290;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:09.589709' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870291;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001400  Lock_time: 0.001191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870292;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:11.592112' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001404  Lock_time: 0.001229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870292;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:11.592223' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.001028  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870293;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:12.591818' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870294;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870294;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:13.589534' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870295;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:14.592848' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000453  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870296;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:15.58953' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870297;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:16.592676' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1486  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870297;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1486  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870297;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:58:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1487  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870298;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1487  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870298;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000551  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870298;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:17.592204' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870299;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:18.594359' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870300;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:19.592135' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870301;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870301;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:20.59212' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001296  Lock_time: 0.001147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870302;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870302;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:21.592214' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870303;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:22.589966' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870304;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:23.590009' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000708  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870305;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870306;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:25.592121' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870307;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:26.591993' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1490  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870307;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1490  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870307;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:58:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1491  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870308;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1491  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870308;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870308;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870308;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:27.589718' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870309;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:28.589539' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870310;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:29.592271' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000919  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870311;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:30.592067' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000806  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870311;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:30.592128' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870312;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:31.592026' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:32.592176' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870314;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870315;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:34.589926' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870316;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:35.592765' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870317;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:36.593196' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1495  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870317;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1495  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870317;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:58:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1496  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870318;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1496  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000242  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870318;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001355  Lock_time: 0.001129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870318;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:37.592084' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870319;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870319;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:38.589703' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:39.589611' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870321;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:40.591665' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870322;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:41.589482' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870322;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:41.589558' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870324;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870324;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:43.5928' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870325;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870325;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:58:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870326;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:45.592673' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870326;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:45.592614' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000765  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870327;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870327;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1502  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870327;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1502  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870327;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:58:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1503  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870328;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1503  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870328;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870328;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:47.592117' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870329;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001038  Lock_time: 0.000542  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870330;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000730  Lock_time: 0.000340  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870330;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:58:50.625'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:58:50.625')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:58:50.625')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:58:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870331;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:50.59283' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870332;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870332;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:51.592403' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000740  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870332;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001430  Lock_time: 0.001149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870333;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:52.592437' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001383  Lock_time: 0.000972  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870333;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:52.592622' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870334;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870335;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870336;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870336;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:55.592381' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870337;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:56.592209' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870337;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:56.592362' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1508  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870337;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1508  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870337;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:58:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1509  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870338;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1509  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870338;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870338;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:58:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870339;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:58:58.589728' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870340;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870340;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:59:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870341;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:00.590018' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000812  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870342;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:01.589819' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000671  Lock_time: 0.000444  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870343;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001256  Lock_time: 0.001053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870343;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:02.589808' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870344;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:03.592879' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001221  Lock_time: 0.001003  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870345;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:04.592334' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870345;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:04.592551' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000571  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870346;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:05.592509' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870347;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1512  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870347;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1512  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870347;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:59:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1513  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870348;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1513  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870348;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870348;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:07.592527' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870349;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:08.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001198  Lock_time: 0.001022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870350;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870351;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:10.589794' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000763  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870351;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:59:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:11.589663' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870353;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:12.592689' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000918  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870354;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000803  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:14.592638' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870356;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870356;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:15.592023' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000822  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870356;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:15.592365' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870357;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1518  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870357;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1518  Schema:   QC_hit: No
# Query_time: 0.000119  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870357;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220309 23:59:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1519  Schema:   QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870358;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1519  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870358;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870358;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:17.592564' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870359;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:18.592595' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870359;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:18.592462' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001038  Lock_time: 0.000782  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870360;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:19.592256' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000978  Lock_time: 0.000725  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870360;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:19.592246' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000645  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870361;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870362;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:21.592404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870362;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:21.593086' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001006  Lock_time: 0.000292  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870363;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002186  Lock_time: 0.002068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870363;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001701  Lock_time: 0.001518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870363;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:22.592406' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000434  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870364;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220309 23:59:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:24.592669' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870366;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:25.591722' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870367;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:26.592592' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1523  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870367;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1523  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870367;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:59:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1524  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870368;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1524  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870368;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000894  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:27.592234' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870369;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:28.591976' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001591  Lock_time: 0.001336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870369;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:28.591906' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870370;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:29.589591' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870371;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:30.589633' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:31.589441' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870372;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:31.589901' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000833  Lock_time: 0.000652  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870373;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870373;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:32.590127' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001517  Lock_time: 0.001255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870374;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001079  Lock_time: 0.000862  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:34.590079' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870376;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870377;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:36.592507' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870377;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:36.59259' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1527  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870377;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1527  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870377;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:59:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1528  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870378;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1528  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870378;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000734  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870378;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870378;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:37.592371' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.001017  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870379;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:38.592243' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870380;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:39.591932' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870381;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000509  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870382;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:41.589575' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870383;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870383;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:42.592733' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870384;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000387  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870384;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870384;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:43.59294' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870385;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:44.589362' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870385;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:44.589413' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870386;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:45.592278' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000729  Lock_time: 0.000551  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870387;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:46.591703' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000971  Lock_time: 0.000782  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870387;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:46.591763' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1531  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870387;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1531  Schema:   QC_hit: No
# Query_time: 0.000142  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870387;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:59:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1532  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870388;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1532  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870388;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870388;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:47.589461' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:47.589681' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870389;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:48.592413' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870390;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000397  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870390;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-09 23:59:50.627'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-09 23:59:50.627')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-09 23:59:50.627')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220309 23:59:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000628  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:50.592242' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870391;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:50.592851' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870392;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870392;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:51.592555' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870393;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:52.592851' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870394;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870394;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:53.589729' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870395;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870395;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:54.589729' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870396;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:55.592483' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870396;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:55.592593' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870397;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870397;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:56.589571' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1535  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870397;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1535  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870397;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220309 23:59:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1536  Schema:   QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000266  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870398;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1536  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870398;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870398;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:57.592603' order by MODIFIED_DATE ASC limit 1;
# Time: 220309 23:59:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870399;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870400;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-09 23:59:59.592393' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000448  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870401;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:00.592261' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870401;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001190  Lock_time: 0.000973  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870402;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:01.592599' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001614  Lock_time: 0.001410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:01.59235' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870403;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:02.592283' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001269  Lock_time: 0.001071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870404;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:03.592697' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870405;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:04.589851' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870405;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:04.590252' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870406;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:05.590164' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870407;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:06.589531' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001414  Lock_time: 0.000919  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870407;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1539  Schema:   QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870407;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1539  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870407;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:00:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1540  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870408;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1540  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870408;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000594  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870408;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:07.589687' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870409;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:08.592511' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870409;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:08.592937' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000463  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870410;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:00:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870412;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:11.592713' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870413;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001435  Lock_time: 0.001178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870414;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:13.592122' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870415;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870415;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:14.589922' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870416;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:15.589521' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870417;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:16.595048' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1543  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870417;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1543  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870417;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:00:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1544  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870418;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1544  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870418;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000713  Lock_time: 0.000578  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870418;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:17.59245' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001926  Lock_time: 0.001367  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870418;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:17.592491' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870419;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:18.592497' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870419;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:18.592534' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870420;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:19.592127' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870421;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:20.592171' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870422;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:21.592351' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870423;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870423;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:22.592922' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870424;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:23.589657' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:23.589655' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870425;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870425;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870425;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:24.592134' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:25.592155' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870427;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:26.592141' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000539  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870427;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:26.592448' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1547  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870427;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1547  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870427;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:00:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1548  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870428;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1548  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870428;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001032  Lock_time: 0.000376  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870428;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001242  Lock_time: 0.001058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870428;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870428;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:27.592389' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870429;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870429;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:28.592355' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870430;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:29.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870431;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870431;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870431;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:30.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000977  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870432;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:31.592495' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001197  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870432;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:31.592483' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870433;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001573  Lock_time: 0.001317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:32.59263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870434;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:33.592463' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870434;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:33.592371' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870435;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:34.59224' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870435;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:34.592275' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870436;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870436;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:35.592262' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.000936  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870437;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:36.592187' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870437;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1551  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870437;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1551  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870437;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:00:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1552  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870438;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1552  Schema:   QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000311  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870438;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:37.592034' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:38.58957' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870440;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:39.59267' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870441;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:40.592562' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000893  Lock_time: 0.000713  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870442;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:41.592405' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870443;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:42.592471' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870444;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:43.589499' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870445;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:44.592436' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001513  Lock_time: 0.001244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870446;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000943  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870446;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:45.592157' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870447;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:46.592335' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1555  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870447;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1555  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870447;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:00:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1556  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870448;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1556  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870448;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870448;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:47.592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870449;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:48.589781' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870450;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:49.592392' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870450;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:49.592596' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000603  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870450;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:00:50.626'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:00:50.626')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:00:50.626')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:00:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870451;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870451;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:50.592915' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870452;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:51.589441' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870453;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:52.592792' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870454;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870454;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:53.592589' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001279  Lock_time: 0.001069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870455;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:54.592254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001187  Lock_time: 0.000950  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870455;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:54.592358' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870456;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:55.592108' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870457;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870457;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:56.59204' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1559  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870457;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1559  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870457;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:00:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1560  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870458;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1560  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870458;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870458;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:57.592332' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:00:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000480  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870459;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870460;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:00:59.592778' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000817  Lock_time: 0.000672  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870461;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000623  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870462;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:01.592356' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000305  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870462;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:01.592307' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870463;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:02.58951' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870463;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:02.58957' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870464;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:03.592447' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870465;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:04.591866' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870466;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870466;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:05.589751' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870467;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:06.592499' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1563  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870467;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1563  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870467;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:01:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1564  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870468;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1564  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870468;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001197  Lock_time: 0.001020  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870468;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:07.592292' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870469;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870470;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870471;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:10.592405' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870472;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870472;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:11.592383' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000545  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870473;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:12.592045' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001154  Lock_time: 0.000924  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870474;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:13.59223' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001470  Lock_time: 0.001250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870474;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:13.592464' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870475;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870475;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:14.591941' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870476;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:15.589677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870477;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:16.592292' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1567  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870477;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1567  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870477;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:01:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1568  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870478;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1568  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870478;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000575  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870478;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:17.59221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870479;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:18.589605' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870479;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:01:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:20.592934' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000810  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870482;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:01:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870483;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:22.592529' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870483;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:22.592572' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870484;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870484;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870484;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:23.592365' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000717  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870485;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:24.59222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001220  Lock_time: 0.000959  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870486;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870486;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:25.592255' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000929  Lock_time: 0.000730  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:26.592306' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1571  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870487;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1571  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870487;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:01:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1572  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870488;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1572  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870488;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001182  Lock_time: 0.001034  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870488;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:27.592544' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001285  Lock_time: 0.001052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870488;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:27.592419' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870489;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:28.592384' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:28.592541' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870490;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:29.59264' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870490;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:29.592687' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870491;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:30.592675' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001178  Lock_time: 0.001026  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870492;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:31.592324' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870493;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:32.592361' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001442  Lock_time: 0.001073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870494;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:33.592357' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001325  Lock_time: 0.000997  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870494;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:33.59232' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870495;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:34.591928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870496;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870496;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:35.590033' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870497;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:36.591734' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870497;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:36.591434' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1578  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870497;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1578  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870497;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:01:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1579  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870498;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1579  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870498;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870498;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:37.592683' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000670  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:37.592848' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870499;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001394  Lock_time: 0.000920  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870499;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:01:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870500;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:39.592612' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001497  Lock_time: 0.001244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870501;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000690  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870501;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:40.592528' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000774  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870502;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:41.592216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001110  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870503;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870503;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870503;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:42.592624' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870504;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:43.592676' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870505;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:44.589389' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002445  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870506;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000591  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:45.593115' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000568  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870507;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:46.589439' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1582  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870507;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1582  Schema:   QC_hit: No
# Query_time: 0.000160  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870507;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220310  0:01:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1583  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870508;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1583  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870508;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870508;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:47.592036' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870509;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:48.58973' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870509;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870510;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:49.589702' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000957  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870510;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:01:50.626'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:01:50.626')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:01:50.626')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:01:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870511;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:50.592531' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001277  Lock_time: 0.001166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870512;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:51.592172' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000904  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870513;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:52.59238' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870514;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:53.592586' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870515;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:54.589431' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870515;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:54.589679' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:55.592733' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870516;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:55.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000519  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870517;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1586  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870517;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1586  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870517;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:01:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1587  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870518;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1587  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870518;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870518;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:57.592495' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:01:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870519;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:58.592616' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:59.592294' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000656  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:01:59.592249' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001358  Lock_time: 0.001176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870521;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:00.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870522;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:01.592045' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.004961  Lock_time: 0.004828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870522;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870523;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870524;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:03.589701' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870525;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:04.5931' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870526;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:05.589492' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870527;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:06.589676' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1590  Schema:   QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870527;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1590  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870527;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:02:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1591  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870528;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1591  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870528;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870528;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870529;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:08.592957' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870529;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:08.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870530;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:09.589313' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870531;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:10.592119' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000572  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870532;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:11.589792' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870532;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:02:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870533;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:12.592219' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:12.592099' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870534;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:13.589736' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870534;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:13.589912' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:14.589549' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870536;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:15.592552' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000637  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870537;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870537;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:16.592565' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1594  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870537;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1594  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870537;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:02:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1595  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870538;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1595  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870538;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870538;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:17.592598' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:18.592559' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001027  Lock_time: 0.000876  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870539;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000813  Lock_time: 0.000676  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870540;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:19.592369' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001002  Lock_time: 0.000791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870540;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:19.592409' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870541;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001065  Lock_time: 0.000928  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:20.592357' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:21.591977' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870543;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:22.590142' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870544;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:23.589728' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870545;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:24.592543' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001281  Lock_time: 0.001068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870546;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:25.592045' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870547;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870547;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:26.59196' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1598  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870547;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1598  Schema:   QC_hit: No
# Query_time: 0.000114  Lock_time: 0.000069  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870547;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:02:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1599  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870548;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1599  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870548;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870548;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:27.58958' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870548;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:27.589651' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:28.592352' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:29.592069' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870551;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:30.589649' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870551;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:30.589691' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870552;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870553;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:32.592264' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000399  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870554;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:33.591307' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001668  Lock_time: 0.001245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870554;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000909  Lock_time: 0.000742  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870555;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870556;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:35.590857' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870557;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:36.589491' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1602  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870557;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1602  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870557;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:02:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1603  Schema:   QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870558;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1603  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870558;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002146  Lock_time: 0.001647  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870558;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:02:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001365  Lock_time: 0.001140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870559;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:38.58949' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001158  Lock_time: 0.000929  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870559;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:38.589437' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870560;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870560;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001302  Lock_time: 0.000952  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870561;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:40.592135' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870561;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:40.592123' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870562;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001064  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870562;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870562;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:41.592278' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870563;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:42.592125' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:42.591952' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001717  Lock_time: 0.001445  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:43.590352' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001782  Lock_time: 0.001448  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:43.590342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000886  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870565;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870565;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:44.59229' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001283  Lock_time: 0.001075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870565;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000844  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870566;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:45.592398' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870567;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:46.590129' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870567;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:46.590154' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1606  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870567;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1606  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870567;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:02:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1607  Schema:   QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000252  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870568;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1607  Schema:   QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870568;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:47.590112' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870569;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:48.590041' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870569;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:02:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:49.589944' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000862  Lock_time: 0.000413  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870570;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:02:50.627'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:02:50.627')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:02:50.627')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:02:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870571;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:50.590101' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870572;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:51.589706' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870573;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:52.592636' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870574;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:54.5924' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000832  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870576;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001455  Lock_time: 0.001331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870576;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000534  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870576;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:55.592843' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001482  Lock_time: 0.001163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870577;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:56.592124' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1610  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870577;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1610  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870577;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:02:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1611  Schema:   QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870578;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1611  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870578;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870578;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001425  Lock_time: 0.001134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870578;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:57.592513' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:02:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870579;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:58.592412' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870580;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:59.592518' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:02:59.592442' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001242  Lock_time: 0.001051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870581;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870581;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:00.59229' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001475  Lock_time: 0.001185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870582;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:01.592771' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001601  Lock_time: 0.001231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870582;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:01.592587' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870583;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870583;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:02.591667' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:03.589646' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000292  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870584;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:03.58949' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870585;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870585;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870585;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:04.592281' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870586;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:05.59257' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000662  Lock_time: 0.000329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870586;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:05.592423' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000897  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870587;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870587;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870587;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:06.592543' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1614  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870587;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1614  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870587;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:03:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1615  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870588;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1615  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870588;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001282  Lock_time: 0.001014  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:07.592174' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870589;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:08.591852' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870590;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:03:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870591;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:10.592553' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001443  Lock_time: 0.001221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870592;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001335  Lock_time: 0.001021  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:12.592541' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001264  Lock_time: 0.000910  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870593;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:12.592406' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001199  Lock_time: 0.000963  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870594;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:13.592851' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870595;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:14.58957' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:15.592964' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870596;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:15.592731' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870597;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870597;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:16.589429' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1618  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870597;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1618  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870597;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:03:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1619  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870598;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1619  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870598;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870598;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870598;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:17.592444' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870599;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:18.591813' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870600;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:19.592448' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001476  Lock_time: 0.001164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870601;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:20.592251' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:21.592259' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870603;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870603;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:22.592149' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:23.592134' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870604;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:23.592236' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000691  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870605;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870606;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:25.589768' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870607;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:26.592423' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1622  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870607;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1622  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870607;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:03:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1623  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870608;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1623  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870608;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870608;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:27.592881' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000408  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870609;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870609;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:28.58952' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870610;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870610;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:29.589937' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870611;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:30.590138' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870612;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:31.592601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870613;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:32.589633' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870614;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:33.589973' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000671  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870615;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001012  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870616;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:35.589793' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001311  Lock_time: 0.001119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870617;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:36.589704' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001346  Lock_time: 0.001148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870617;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:36.5898' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1626  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870617;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1626  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870617;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:03:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1627  Schema:   QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000240  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870618;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1627  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870618;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:37.592619' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870618;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:37.59228' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870619;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:38.589887' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870619;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:38.589903' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870620;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:39.590233' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870620;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:39.589577' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:40.592105' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000908  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870622;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001283  Lock_time: 0.000945  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870623;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:42.591971' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000643  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870624;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870625;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:44.592068' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870626;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870626;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:45.590011' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:46.590048' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870627;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:46.590006' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1630  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870627;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1630  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870627;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:03:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1631  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870628;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1631  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870628;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870628;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:47.589944' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870628;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:47.590512' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870629;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870629;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870630;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870630;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:03:50.628'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:03:50.628')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:03:50.628')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:03:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870631;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870632;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:51.589928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870633;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:52.589722' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000948  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870634;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:53.589301' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870635;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:54.592744' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870636;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:55.590103' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870637;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:56.592097' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870637;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:56.592285' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1634  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870637;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1634  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870637;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:03:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1635  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870638;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1635  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870638;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870638;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:03:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870639;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:58.589813' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870639;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:58.58997' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870640;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:03:59.590361' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870641;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:00.592605' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870642;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:01.59306' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870642;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:01.592405' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.000971  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870643;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:02.590299' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870644;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001293  Lock_time: 0.001047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870645;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:04.592129' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870646;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:05.59011' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870647;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:06.589735' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1638  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870647;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1638  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870647;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:04:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1639  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870648;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1639  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870648;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001189  Lock_time: 0.001043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870648;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000411  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:07.589777' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870649;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:08.592244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870650;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:09.589941' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001244  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870651;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:04:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870652;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870653;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:12.589949' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000728  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870654;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:13.589971' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870655;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:14.589361' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:15.592381' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870657;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:16.591123' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870657;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:16.590957' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1642  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870657;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1642  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870657;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:04:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1643  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870658;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1643  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870658;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870658;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870659;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:18.592386' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870660;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:19.592452' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870661;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:20.592723' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001215  Lock_time: 0.001008  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870662;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:22.592079' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:23.592243' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000514  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870665;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:24.592074' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000498  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:25.592308' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870666;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:25.592882' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870667;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:26.589962' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1646  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870667;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1646  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870667;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:04:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1647  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870668;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1647  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870668;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870668;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:27.590254' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870669;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:28.592764' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000909  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870670;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:29.592371' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870671;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:30.592792' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000920  Lock_time: 0.000716  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870672;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:31.592015' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001424  Lock_time: 0.001192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:31.591994' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870673;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870673;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:04:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870674;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:33.592687' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870674;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:33.59243' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001299  Lock_time: 0.001077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870675;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:34.592311' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870676;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:35.590742' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870676;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:35.59133' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870677;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870677;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1650  Schema:   QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870677;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1650  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000220  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870677;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:04:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1651  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870678;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1651  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870678;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870678;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:37.590178' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870679;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:38.592528' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000897  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870680;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000431  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870680;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:39.592266' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000411  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870681;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:40.593176' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000693  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870681;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:40.592434' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870682;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:41.592186' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870682;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:41.592217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:42.592311' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000911  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870684;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:04:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870685;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:44.589666' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870686;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870686;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:45.592519' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870687;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:46.589759' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870687;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:46.589492' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1654  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870687;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1654  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870687;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:04:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1655  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870688;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1655  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870688;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870688;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:47.592355' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:48.592332' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000908  Lock_time: 0.000780  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870690;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870690;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:49.592574' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001043  Lock_time: 0.000398  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870690;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:04:50.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:04:50.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:04:50.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:04:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001357  Lock_time: 0.001192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870691;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:50.592623' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001552  Lock_time: 0.001369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:50.592175' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870692;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870692;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:51.59199' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:52.592085' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870694;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:53.589699' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870695;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:04:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000651  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:55.593022' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870697;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:56.592494' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001209  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870697;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1658  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870697;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1658  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870697;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:04:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1659  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870698;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1659  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870698;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001142  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870698;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:57.592442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000744  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:57.592538' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:04:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870699;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870699;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:04:58.592425' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870700;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870701;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:00.59227' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001093  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870702;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870702;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:01.592098' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870703;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870703;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:05:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870704;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:03.591147' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870704;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:03.59091' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870705;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:05:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870706;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:05.59236' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001384  Lock_time: 0.001200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870707;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:06.59225' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001526  Lock_time: 0.001278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870707;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:06.592149' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1662  Schema:   QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870707;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1662  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870707;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:05:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1663  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870708;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1663  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870708;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870708;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:07.592344' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870709;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:08.592191' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870710;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:09.592265' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000345  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870711;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870711;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870711;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:10.592394' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870712;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:11.599987' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870712;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:11.600087' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870713;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:12.590052' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870714;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:13.590483' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000412  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870715;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:14.58962' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870716;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:15.592651' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870717;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870717;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:16.592766' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1666  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870717;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1666  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870717;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:05:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1667  Schema:   QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000236  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870718;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1667  Schema:   QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000701  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870718;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870718;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:17.590126' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870719;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:18.589695' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:19.59281' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870720;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:19.592905' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870721;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870721;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:20.590064' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870722;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:21.592739' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870723;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:22.592501' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000893  Lock_time: 0.000689  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870723;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:22.592372' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000426  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870724;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870725;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:24.592535' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870725;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:24.592715' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870726;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:25.589432' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:25.589488' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001679  Lock_time: 0.001136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870727;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870727;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:26.592475' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1670  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870727;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1670  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870727;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:05:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1671  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870728;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1671  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870728;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870728;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:27.592646' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870729;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:28.592829' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870729;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870730;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870731;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:30.592516' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870732;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:31.592555' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000722  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870733;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000858  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870733;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870733;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:32.592678' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870734;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:33.592811' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870734;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:33.593182' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870735;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:34.589707' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870736;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:05:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870737;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1674  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870737;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1674  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870737;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:05:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1675  Schema:   QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870738;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1675  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870738;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870738;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:37.592668' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870739;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001253  Lock_time: 0.001063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870739;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870740;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870741;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:40.589892' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000895  Lock_time: 0.000457  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870741;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:40.590046' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001627  Lock_time: 0.001150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870742;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:05:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870743;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001219  Lock_time: 0.001079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870743;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:42.589829' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870744;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:43.592317' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870745;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:44.592491' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870745;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:44.592424' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870746;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:45.592317' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870747;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870747;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:46.589531' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1678  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870747;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1678  Schema:   QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000370  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870747;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:05:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1679  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870748;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1679  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870748;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870748;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870749;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870750;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:49.592154' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001172  Lock_time: 0.000625  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870750;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:05:50.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:05:50.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:05:50.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:05:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001390  Lock_time: 0.001187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870752;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:51.589945' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870752;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:51.589874' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870753;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:52.592122' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870754;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:53.592431' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870755;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870756;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870757;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:56.592379' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1682  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870757;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1682  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870757;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:05:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1683  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870758;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1683  Schema:   QC_hit: No
# Query_time: 0.000144  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870758;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870758;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:57.592132' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:05:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000598  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870759;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:58.592463' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870760;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:05:59.589491' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:00.592433' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001222  Lock_time: 0.001045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870762;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870762;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:01.592142' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870763;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:02.589533' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870763;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:02.589514' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870764;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870764;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:03.592827' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870765;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870765;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:04.589658' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870766;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:05.592417' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:05.592565' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001597  Lock_time: 0.001122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870767;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870767;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:06.592344' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:06.592663' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1687  Schema:   QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870767;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1687  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870767;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:06:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1688  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870768;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1688  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870768;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870768;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870768;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:07.592357' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870769;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:08.592526' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870769;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:08.592263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870770;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001396  Lock_time: 0.001234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870770;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870770;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:09.592272' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001531  Lock_time: 0.001341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870771;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:10.591982' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870772;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000709  Lock_time: 0.000518  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870772;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:11.589601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870773;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:12.592622' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870774;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:13.592432' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870774;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:13.592627' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000986  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870775;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001000  Lock_time: 0.000833  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870776;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:15.592595' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000794  Lock_time: 0.000645  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870776;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:15.59274' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870777;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:16.592311' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000706  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870777;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:16.592456' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1692  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870777;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1692  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870777;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:06:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1693  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870778;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1693  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870778;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870778;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870778;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870779;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:18.592416' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870780;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870780;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:19.592225' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001157  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:20.592011' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000778  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870781;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:20.591907' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870782;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:21.589523' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870783;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:22.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870784;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:23.592672' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870784;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:23.592257' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870785;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870785;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001037  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870785;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:24.591973' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870786;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:25.589654' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870786;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:25.589645' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870787;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:26.58967' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1696  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870787;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1696  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870787;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:06:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1697  Schema:   QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000297  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870788;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1697  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870788;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.000775  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870788;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:06:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:28.592404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870789;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:28.592565' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870790;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000560  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870790;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870791;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:30.592264' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870791;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:30.592771' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870792;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:31.59236' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001522  Lock_time: 0.001336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870793;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:32.592371' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001472  Lock_time: 0.001319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870793;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:32.592452' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001433  Lock_time: 0.001252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870794;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:33.59256' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001282  Lock_time: 0.001099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870794;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:33.592586' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870795;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870795;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:34.592274' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870796;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:35.59188' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870797;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:36.589743' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1701  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870797;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1701  Schema:   QC_hit: No
# Query_time: 0.000125  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870797;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:06:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1702  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870798;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1702  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870798;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000996  Lock_time: 0.000802  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870798;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870799;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:38.592535' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001098  Lock_time: 0.000403  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870800;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:39.592305' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870800;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:39.592364' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870801;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001101  Lock_time: 0.000996  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870801;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:40.592215' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870802;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:41.592099' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870803;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:42.592235' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870804;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:43.59217' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870804;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:43.592223' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870805;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870805;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:44.592171' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001090  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870806;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000530  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:45.592023' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870807;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870807;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:46.590264' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1706  Schema:   QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000257  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870807;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1706  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870807;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:06:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1707  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870808;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1707  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870808;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000944  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870808;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:47.589571' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870809;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:48.59257' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870809;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:48.592352' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000968  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870810;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001036  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870810;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:06:50.629'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:06:50.629')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:06:50.629')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:06:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870811;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:50.592466' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001827  Lock_time: 0.001628  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870812;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:51.592339' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001759  Lock_time: 0.001529  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870812;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:51.592246' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870813;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:52.592088' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870814;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:53.592075' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870815;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:54.591966' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:55.589511' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870816;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:55.58961' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870817;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:56.592772' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1711  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870817;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1711  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870817;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:06:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1712  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870818;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1712  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870818;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.001071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870818;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000595  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870818;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:57.592172' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:06:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870819;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:58.59278' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:06:59.589433' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870821;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:00.592276' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870822;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870822;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:01.592541' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870823;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:02.592368' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870824;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:07:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870825;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:04.592619' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870826;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:07:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870827;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:06.591222' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1715  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870827;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1715  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870827;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:07:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1716  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870828;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1716  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870828;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001007  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870828;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:07.590045' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870829;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:08.589962' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:09.592677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000656  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870831;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001042  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870831;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000656  Lock_time: 0.000485  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:11.592455' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001423  Lock_time: 0.001045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870833;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:12.592605' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001158  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870833;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:12.592683' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870834;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:13.592301' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870835;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:14.592163' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870836;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870836;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:15.592648' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870837;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:16.589778' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870837;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:16.589592' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1719  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870837;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1719  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870837;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:07:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1720  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870838;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1720  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870838;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870838;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000315  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870839;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:18.589932' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001243  Lock_time: 0.001036  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870840;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:19.589657' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870841;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:20.592341' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870841;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:20.592683' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870842;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:21.589928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870843;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870843;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:22.59031' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870844;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001088  Lock_time: 0.000972  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870845;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:24.590639' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870846;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870846;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:25.592116' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870847;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.005468  Lock_time: 0.005358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:26.591553' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1723  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870847;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1723  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000068  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870847;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:07:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1724  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870848;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1724  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870848;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870848;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:27.592258' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:28.592206' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000903  Lock_time: 0.000389  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870850;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:29.592598' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001046  Lock_time: 0.000649  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870850;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:29.592381' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001033  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870851;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870852;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:31.59226' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870853;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870854;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870854;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:33.591943' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:34.591241' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870855;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:34.591228' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870856;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:35.590109' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870857;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870857;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:36.590399' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1727  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870857;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1727  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870857;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:07:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1728  Schema:   QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000283  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870858;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1728  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870858;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870858;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:37.589839' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001500  Lock_time: 0.001270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870859;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001913  Lock_time: 0.001319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870859;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:07:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870860;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:39.590383' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870861;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:40.592292' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001628  Lock_time: 0.001346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:41.592186' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000570  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870862;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:41.592128' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870863;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:42.589783' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870863;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870864;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:43.589969' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001509  Lock_time: 0.001272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870865;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870865;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:44.591524' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870866;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:45.592438' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870866;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:45.592363' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870867;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001121  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870867;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:46.592513' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1731  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870867;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1731  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870867;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:07:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1732  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870868;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1732  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870868;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870868;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:47.589342' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000560  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870868;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:47.589484' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:48.592317' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000745  Lock_time: 0.000528  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870870;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:49.591853' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001174  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870870;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000455  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870870;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:07:50.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:07:50.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:07:50.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:07:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870871;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870871;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:50.589952' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870872;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:51.590396' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870873;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:52.59262' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870874;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:53.590376' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870874;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:07:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870875;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870875;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:54.592211' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870876;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:55.590455' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870877;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000794  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870877;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:56.589558' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1735  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870877;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1735  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870877;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:07:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1736  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870878;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1736  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000229  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870878;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000561  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870878;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:57.592376' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870878;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:57.592696' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:07:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870879;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000658  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870879;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:58.591874' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870880;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:59.589581' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870880;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:07:59.589397' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870881;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:00.592082' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870882;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000657  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:02.590011' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001956  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870883;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:08:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870884;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:03.589648' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870884;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:03.589924' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870885;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:04.589347' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000809  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870885;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:08:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870886;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:05.592723' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870887;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:06.592407' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1739  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870887;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1739  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870887;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:08:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1740  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870888;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1740  Schema:   QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000628  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870888;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870888;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000525  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870889;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:08.592341' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001533  Lock_time: 0.001416  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870890;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:09.591982' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870891;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:10.589893' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870892;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:11.590341' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000711  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870893;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:12.59001' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000917  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870893;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:12.589717' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001341  Lock_time: 0.001090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870894;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:13.589889' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000609  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870895;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870895;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:14.589469' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870896;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000656  Lock_time: 0.000428  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:16.592652' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1743  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870897;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1743  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870897;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:08:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1744  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870898;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1744  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870898;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870898;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870898;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:17.589479' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870899;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:18.592284' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870899;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:18.592302' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870900;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870900;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:19.592178' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001162  Lock_time: 0.000990  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870900;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:20.589809' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870901;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:20.589701' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:21.592517' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870903;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870904;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:23.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001258  Lock_time: 0.001094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870905;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870905;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:24.59216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001496  Lock_time: 0.001360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870906;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:25.591977' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870907;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870907;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:26.589496' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1747  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870907;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1747  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870907;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:08:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1748  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870908;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1748  Schema:   QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000744  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870908;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870908;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:27.593112' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870909;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:28.589808' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001297  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870910;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:08:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870911;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870912;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870912;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:31.589527' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870913;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:32.592244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001648  Lock_time: 0.001373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870914;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870914;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:33.592244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000703  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870915;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870915;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:34.589991' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870916;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:35.59238' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870916;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:35.592663' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000981  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870917;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870917;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:36.592173' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1751  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870917;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1751  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870917;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:08:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1752  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870918;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1752  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870918;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:37.592272' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870918;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:38.592551' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870920;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001104  Lock_time: 0.000855  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870921;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000894  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870922;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:41.591644' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870923;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:42.590333' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001285  Lock_time: 0.001118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870923;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:42.590542' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870924;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870924;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870925;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:44.590464' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:45.592153' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870927;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:46.59226' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1755  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870927;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1755  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870927;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:08:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1756  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870928;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1756  Schema:   QC_hit: No
# Query_time: 0.000124  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870928;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870928;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:47.59234' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870929;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870930;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870930;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:49.594632' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001236  Lock_time: 0.000509  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870930;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:08:50.63'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:08:50.63')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:08:50.63')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:08:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870931;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870931;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:50.590241' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:51.590506' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870932;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:51.589921' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000954  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:52.589895' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001401  Lock_time: 0.001240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870933;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870934;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:53.592428' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870935;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000886  Lock_time: 0.000748  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870935;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:54.591969' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870936;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:55.592414' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870937;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:56.591771' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1759  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870937;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1759  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870937;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:08:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1760  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870938;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1760  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870938;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001113  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870938;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:57.592034' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001126  Lock_time: 0.000939  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870938;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:08:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870939;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:09:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870940;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:08:59.592373' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001127  Lock_time: 0.000987  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870941;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870942;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870942;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:01.592686' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870943;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:02.592637' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870944;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:03.592466' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870945;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870945;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001350  Lock_time: 0.001169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870945;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:04.592273' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001236  Lock_time: 0.000948  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870946;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:05.59201' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001182  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870946;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:05.591952' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870947;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1763  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870947;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1763  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870947;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:09:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1764  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000237  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870948;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1764  Schema:   QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000415  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870948;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870948;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:07.592298' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870949;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:08.592184' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870950;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:09.592024' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870951;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:10.589657' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870952;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:11.592767' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870953;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870953;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:12.589466' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870954;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870955;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:14.592455' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000739  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870956;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:15.59237' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000660  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870956;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:15.592285' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001209  Lock_time: 0.000936  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870957;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:16.592222' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1767  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000230  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870957;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1767  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870957;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:09:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1768  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870958;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1768  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870958;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000292  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870958;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:17.591902' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870959;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870959;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:18.58942' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870960;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:19.592745' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000420  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:20.592528' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870962;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:21.592521' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001210  Lock_time: 0.001007  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870963;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:22.592651' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001126  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870964;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:23.592303' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001022  Lock_time: 0.000809  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870964;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:23.592336' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870965;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870965;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:24.592022' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870966;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:25.592342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001041  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870967;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001645  Lock_time: 0.001430  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870967;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:26.592012' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1771  Schema:   QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000247  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870967;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1771  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870967;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220310  0:09:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1772  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870968;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1772  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870968;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870968;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:27.589715' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870969;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:28.592478' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:28.592524' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:29.592479' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870971;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:30.592404' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870972;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:31.592689' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:31.592676' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870973;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870973;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:32.592388' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870974;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:33.589809' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:34.592696' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870975;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:34.592313' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870976;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870976;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:35.5931' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000991  Lock_time: 0.000844  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870977;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000562  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870977;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:36.592352' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1775  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870977;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1775  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870977;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:09:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1776  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870978;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1776  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870978;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870978;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:37.592223' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870979;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000898  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:38.592283' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001176  Lock_time: 0.000855  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870980;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:39.592311' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000751  Lock_time: 0.000430  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870980;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:39.592445' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870981;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870982;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:41.589602' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870983;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:42.58982' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870984;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:43.590022' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000941  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870985;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000390  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870985;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:44.589821' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870986;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:45.592519' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:45.592561' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870987;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1779  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870987;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1779  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870987;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:09:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1780  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870988;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1780  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870988;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870988;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:47.589609' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870989;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:48.592738' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000698  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870990;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870990;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:49.589821' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002037  Lock_time: 0.001489  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646870990;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:09:50.631'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:09:50.631')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:09:50.631')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:09:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646870991;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:50.591657' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870992;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:51.592809' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870993;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870993;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:52.58943' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870994;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:53.592382' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870995;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:54.592401' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000840  Lock_time: 0.000678  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870995;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001045  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870996;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:55.592321' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000908  Lock_time: 0.000704  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870997;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000968  Lock_time: 0.000752  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870997;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:56.592746' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1783  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870997;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1783  Schema:   QC_hit: No
# Query_time: 0.000132  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870997;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:09:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1784  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646870998;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1784  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646870998;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000448  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870998;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001393  Lock_time: 0.001188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870998;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:57.59256' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:09:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870999;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646870999;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:58.592353' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:09:59.592217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:00.59232' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871001;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:00.59232' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871002;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871002;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:01.589849' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000400  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871003;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:02.589712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871004;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871004;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:03.592295' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871005;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871006;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:05.592742' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000558  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871007;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1787  Schema:   QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1787  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:10:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1788  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871008;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1788  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871008;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001056  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871008;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871008;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:07.589985' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871009;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:08.590318' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871010;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871011;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:10.592683' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001153  Lock_time: 0.000928  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871012;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871012;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:11.592597' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001566  Lock_time: 0.001225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:12.592446' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871014;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871014;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:13.589753' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871015;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:14.589567' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871016;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871016;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:15.592723' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:16.592125' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1791  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1791  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:10:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1792  Schema:   QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871018;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1792  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871018;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000807  Lock_time: 0.000701  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871018;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:17.592195' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871019;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871020;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:19.592586' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002028  Lock_time: 0.001832  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001104  Lock_time: 0.000782  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871021;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:20.592224' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871022;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871022;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:21.59012' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871023;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871023;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:22.590158' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871024;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:23.590448' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:24.593234' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871026;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001303  Lock_time: 0.001008  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:25.589812' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001173  Lock_time: 0.000957  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871027;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871027;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:26.592532' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1795  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1795  Schema:   QC_hit: No
# Query_time: 0.000134  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:10:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1796  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1796  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001262  Lock_time: 0.000953  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871028;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871028;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:27.592394' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871029;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:28.592347' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871030;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871031;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:30.592362' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000999  Lock_time: 0.000822  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871032;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871033;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:32.592376' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000784  Lock_time: 0.000614  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871034;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:33.59223' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001183  Lock_time: 0.000985  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871034;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:33.592201' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:34.592273' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871036;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:35.592253' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871037;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000952  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871037;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:36.591811' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1799  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1799  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:10:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1800  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1800  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:37.589694' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871038;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:37.590029' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871039;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:38.589563' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871040;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:39.59257' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000494  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871041;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:40.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001213  Lock_time: 0.001022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871042;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:41.592284' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871043;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:42.592127' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:43.59212' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:43.592107' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871045;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871045;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:44.589712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:45.590291' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871047;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1803  Schema:   QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1803  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:10:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1804  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1804  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871048;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:47.589831' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871049;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:48.589692' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:49.592594' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001516  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871050;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:10:50.633'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:10:50.633')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:10:50.633')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:10:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871051;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:50.59265' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000967  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871051;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871052;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:51.592714' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871053;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:52.592326' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871053;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:52.592354' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001289  Lock_time: 0.001103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871054;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.001010  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:54.59232' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001006  Lock_time: 0.000777  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871055;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:54.592214' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871056;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001818  Lock_time: 0.001610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871056;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:55.592306' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:10:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871057;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871057;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:56.589839' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1807  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1807  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000083  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:10:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1808  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1808  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000751  Lock_time: 0.000592  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871058;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:10:57.589379' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000746  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871061;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:00.592623' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001193  Lock_time: 0.001033  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871062;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:01.592114' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000955  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871062;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:01.59223' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871063;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:02.589844' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871064;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:03.58994' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871064;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:03.589729' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871065;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871065;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:04.59247' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000889  Lock_time: 0.000674  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871066;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:05.592355' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001489  Lock_time: 0.001265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871066;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001154  Lock_time: 0.000994  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871067;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:06.592158' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001376  Lock_time: 0.001171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871067;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:06.592005' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1811  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1811  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:11:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1812  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1812  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871068;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871068;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:07.589927' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871069;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:08.589464' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871070;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:09.592349' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871071;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:10.592112' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871072;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:11.592116' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:11.592294' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000597  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871073;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:12.592003' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871073;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:12.591903' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871074;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871074;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:13.589807' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871075;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:14.589496' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871075;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:14.589568' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871076;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:15.592445' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871077;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:16.592405' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1815  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1815  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:11:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1816  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1816  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:17.592398' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871079;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:18.592291' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:18.592521' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000757  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871080;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:19.592418' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871081;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:20.592161' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000982  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871081;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001057  Lock_time: 0.000874  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871082;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:21.592091' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001258  Lock_time: 0.000852  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871082;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:21.592159' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871083;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871083;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:22.59184' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871084;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:23.589556' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871084;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:23.589647' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871085;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:24.592471' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871085;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:25.592219' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871086;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:25.592203' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001062  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871087;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:26.59193' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1819  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1819  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:11:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1820  Schema:   QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1820  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871088;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:27.589653' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871089;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:28.592504' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:29.592527' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871091;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871091;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:30.592637' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.000965  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871092;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:31.592334' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.000979  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871093;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:32.592066' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001157  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:32.592134' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001921  Lock_time: 0.001173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871094;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871094;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:33.591968' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:34.589504' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871095;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:34.589586' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871096;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:35.59255' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871097;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:36.59283' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871097;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:36.592806' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1823  Schema:   QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1823  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000257  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:11:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1824  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1824  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871098;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:37.589676' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871099;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:38.592494' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000517  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871100;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:39.592156' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871101;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:40.592073' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000712  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:40.592077' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871102;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:41.589834' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871102;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:41.589974' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871103;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:42.589646' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871104;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:43.592482' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001233  Lock_time: 0.001029  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871105;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:44.592541' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001421  Lock_time: 0.001187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:45.592444' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001437  Lock_time: 0.001246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871106;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:45.592494' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871107;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871107;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:46.592172' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1827  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1827  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:11:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1828  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1828  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871108;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:47.591987' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871109;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:48.589837' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871110;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:49.592361' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871110;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:49.592448' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001109  Lock_time: 0.000434  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871110;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:11:50.632'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:11:50.632')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:11:50.632')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:11:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000612  Lock_time: 0.000462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871111;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:50.592637' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:51.592593' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000437  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871113;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:52.592627' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871113;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:52.592812' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:53.589408' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871114;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:53.589414' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871115;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:54.592253' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871116;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:55.592244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000924  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871117;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:56.592007' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001461  Lock_time: 0.001223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871117;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1831  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1831  Schema:   QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:11:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1832  Schema:   QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1832  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000479  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871118;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:57.589706' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:11:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000488  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871119;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:11:58.589697' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871120;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871121;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:00.592352' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871121;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:00.592571' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871122;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:01.592456' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001264  Lock_time: 0.001066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871123;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001100  Lock_time: 0.000853  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:03.592404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000630  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871124;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:03.592602' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001727  Lock_time: 0.001497  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871125;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:04.592692' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871126;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871127;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:06.589747' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1835  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1835  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:12:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1836  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1836  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000893  Lock_time: 0.000749  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:07.589486' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871129;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:08.592286' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871130;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:09.592347' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001216  Lock_time: 0.001041  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871131;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:10.592109' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:10.592245' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871132;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001395  Lock_time: 0.001152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871132;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:11.592262' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001480  Lock_time: 0.001301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871133;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:12.592384' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001563  Lock_time: 0.001329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871133;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:12.592227' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871134;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871135;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:14.592207' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871135;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:14.59208' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000875  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871136;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001177  Lock_time: 0.001054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871136;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001002  Lock_time: 0.000843  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871137;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:16.59217' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:16.592125' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1839  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1839  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:12:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1840  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1840  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871138;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:17.592116' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871139;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:18.590078' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871140;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001168  Lock_time: 0.001005  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871140;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:19.589721' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871141;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:20.592501' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871142;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:12:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871143;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:22.592529' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871144;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:23.592325' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871145;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:24.592129' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871146;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:25.590185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871147;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:26.589856' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1843  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1843  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:12:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1844  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1844  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001280  Lock_time: 0.001123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871148;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000556  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:27.589765' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:28.592632' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871150;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001286  Lock_time: 0.001044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871151;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:30.592231' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871152;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871153;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:32.592379' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001659  Lock_time: 0.001453  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871154;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:33.592172' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001472  Lock_time: 0.001215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871154;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:33.59224' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871155;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:34.59233' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001220  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:34.591982' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871156;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001373  Lock_time: 0.001082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871156;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:35.593157' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871157;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:36.59514' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1847  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1847  Schema:   QC_hit: No
# Query_time: 0.000157  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:12:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1848  Schema:   QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1848  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871158;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:37.592555' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871159;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:38.59215' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871160;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871161;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:40.592404' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871161;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:40.592483' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871162;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:41.591943' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871163;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:42.589774' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871164;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:43.590009' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871166;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:45.589847' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:45.590164' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871167;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:46.590668' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1851  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1851  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:12:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1852  Schema:   QC_hit: No
# Query_time: 0.000587  Lock_time: 0.000375  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1852  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871168;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:47.592928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871169;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871169;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:48.589757' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871170;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:49.592466' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001221  Lock_time: 0.000713  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871170;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:12:50.634'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:12:50.634')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:12:50.634')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:12:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871171;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871172;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:51.592022' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002458  Lock_time: 0.002143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871173;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:52.589669' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001088  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871174;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:53.592399' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000967  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871175;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:54.592151' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871176;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:55.589869' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:57
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1855  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1855  Schema:   QC_hit: No
# Query_time: 0.000148  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:12:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1856  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1856  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001602  Lock_time: 0.001391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871178;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:57.592721' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001572  Lock_time: 0.001399  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871178;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:57.592626' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:12:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871179;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:58.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871180;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:12:59.589583' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871180;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:13:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871181;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:00.592904' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871182;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:01.589438' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:02.592527' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000950  Lock_time: 0.000673  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871184;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:03.591956' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000839  Lock_time: 0.000447  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:03.592155' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871185;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:04.589631' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871185;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:04.589734' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871186;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:05.589634' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871186;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:13:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871187;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:06.592613' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1859  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1859  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:13:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1860  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1860  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871188;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:07.592374' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871188;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:07.592535' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871189;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:08.592571' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871190;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:09.592293' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001285  Lock_time: 0.001054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871190;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:09.592295' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871191;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:10.592016' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001258  Lock_time: 0.001138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871191;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871192;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000775  Lock_time: 0.000543  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871192;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:11.592018' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871193;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:12.590218' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871193;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:12.589719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001372  Lock_time: 0.001178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871194;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871195;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:14.592449' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871196;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871197;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871197;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1863  Schema:   QC_hit: No
# Query_time: 0.000156  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1863  Schema:   QC_hit: No
# Query_time: 0.000104  Lock_time: 0.000066  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:13:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1864  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1864  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000274  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871198;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871198;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:17.592354' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871199;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:18.592709' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871199;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:18.592976' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871200;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:19.589607' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871201;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:20.589564' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871202;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:21.592396' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:21.592684' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000827  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871203;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001291  Lock_time: 0.001082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871203;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000313  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871204;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:23.592523' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871204;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:23.592756' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:24.592359' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871205;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:24.592898' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871206;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871206;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:25.589398' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871207;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:26.59275' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1867  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1867  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:13:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1868  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1868  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871208;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:27.592411' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000703  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871208;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000368  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871209;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:28.592348' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001054  Lock_time: 0.000928  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871210;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001329  Lock_time: 0.001029  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871211;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:30.592128' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871212;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871212;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871212;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:31.592789' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871213;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:32.592387' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871214;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871214;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871214;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:33.592462' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871215;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001309  Lock_time: 0.001074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871215;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:34.591941' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871216;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871216;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:35.589665' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871217;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871217;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:36.59214' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1871  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1871  Schema:   QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000290  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:13:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1872  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1872  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000971  Lock_time: 0.000813  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871218;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871218;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:37.592438' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001113  Lock_time: 0.000952  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871219;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871219;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:38.592501' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000573  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871220;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000920  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871221;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871221;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:40.592205' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001300  Lock_time: 0.001163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871222;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:41.592402' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001316  Lock_time: 0.001142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871222;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:41.59219' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001447  Lock_time: 0.001139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871223;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:42.592368' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871223;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:42.592201' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871224;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.001025  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871224;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:43.592497' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871225;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:13:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871226;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:45.592819' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002594  Lock_time: 0.002446  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871227;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:46.59245' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1875  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871227;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1875  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871227;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:13:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1876  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871228;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1876  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871228;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000743  Lock_time: 0.000478  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871228;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871228;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:47.589515' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871229;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871230;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:49.5894' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001606  Lock_time: 0.001176  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871230;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:13:50.635'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:13:50.635')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:13:50.635')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:13:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871231;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871232;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:51.592196' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871233;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:52.592377' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871234;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:53.592647' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000858  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871235;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871236;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:55.590027' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871236;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:55.590139' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871237;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:56.592464' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1879  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871237;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1879  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871237;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:13:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1880  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871238;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1880  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871238;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871238;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:57.58948' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000885  Lock_time: 0.000650  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871238;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:57.589502' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:13:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871239;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:58.592465' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871239;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:58.592514' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871240;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:13:59.59211' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001135  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:00.592239' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871241;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:00.592268' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871242;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:01.592513' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871242;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:01.592846' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001386  Lock_time: 0.001224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871243;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:02.592684' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001328  Lock_time: 0.001109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871243;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:02.592944' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871244;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871245;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:04.592773' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871246;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871246;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:05.589509' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871247;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:06.592332' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871247;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:06.592663' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1883  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871247;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1883  Schema:   QC_hit: No
# Query_time: 0.000117  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871247;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:14:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1884  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871248;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1884  Schema:   QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000249  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871248;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000716  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871248;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000745  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871248;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871248;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:07.592265' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871249;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:08.59258' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871250;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871250;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871250;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:09.592332' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871251;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:10.592206' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871252;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871252;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:11.592605' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871253;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:12.589466' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871254;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:13.592594' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:14.592302' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001119  Lock_time: 0.000909  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:15.591953' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871257;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:16.59214' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1887  Schema:   QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000560  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871257;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1887  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871257;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:14:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1888  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871258;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1888  Schema:   QC_hit: No
# Query_time: 0.000930  Lock_time: 0.000848  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871258;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871258;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871258;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000882  Lock_time: 0.000681  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871258;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:17.591873' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001184  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871259;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:18.592023' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871260;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871260;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:19.589567' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871261;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:20.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871262;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:21.592453' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871262;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:21.592542' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871263;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:22.59263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871264;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:23.592424' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:24.59222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871266;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:25.592414' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871267;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871267;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:26.592274' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1891  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871267;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1891  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871267;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:14:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1892  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871268;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1892  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871268;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:27.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871269;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:28.589423' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871270;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:29.592367' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871270;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:29.592328' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000805  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871271;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:30.592217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001173  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871272;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.000989  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871272;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:31.592342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001033  Lock_time: 0.000884  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871273;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:32.592187' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001185  Lock_time: 0.000903  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:33.592165' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871275;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871275;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871276;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:35.592049' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000053  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871277;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:36.592349' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1895  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871277;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1895  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871277;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:14:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1896  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871278;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1896  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871278;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871278;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:37.592244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000700  Lock_time: 0.000541  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871279;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:38.591934' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001367  Lock_time: 0.001195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871279;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000974  Lock_time: 0.000779  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871280;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:39.592083' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871281;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:40.59186' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871281;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:40.592068' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871282;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:41.589545' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871282;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:41.589578' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871283;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:42.592589' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871284;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871284;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:43.589769' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000575  Lock_time: 0.000353  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871285;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:44.589622' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871286;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:45.593249' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871287;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001271  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871287;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:46.592318' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1899  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871287;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1899  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871287;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:14:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1900  Schema:   QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871288;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1900  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871288;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871288;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:47.592344' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871289;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:48.592483' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000387  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871289;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:48.59233' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871290;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:49.592529' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871290;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:49.592362' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000393  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871290;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:14:50.634'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:14:50.634')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:14:50.634')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:14:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871291;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:50.592286' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001275  Lock_time: 0.001072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871292;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:51.592031' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871293;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:52.589681' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871293;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:52.589658' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871294;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:53.589557' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871295;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:54.592218' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871296;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871296;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000956  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:55.592134' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871297;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:56.589614' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1903  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871297;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1903  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871297;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:14:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1904  Schema:   QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871298;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1904  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871298;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871298;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:57.589847' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:14:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871299;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:58.592379' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871300;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:14:59.592353' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871300;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000676  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871301;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:00.592106' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871302;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001197  Lock_time: 0.001051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871303;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:02.592061' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001305  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871304;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:03.592185' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001475  Lock_time: 0.001245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871304;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:03.592216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871305;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871305;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:04.592232' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871306;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001338  Lock_time: 0.001099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871307;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:06.589374' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1909  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871307;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1909  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871307;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:15:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1910  Schema:   QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871308;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1910  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871308;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871308;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871309;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:08.592354' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001279  Lock_time: 0.001045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871310;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:09.591114' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001065  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871310;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:09.590647' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000571  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871311;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:10.589794' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000799  Lock_time: 0.000430  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871312;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:11.590267' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002054  Lock_time: 0.001468  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871313;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871313;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:12.592074' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871314;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:13.592481' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001594  Lock_time: 0.001308  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871315;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:14.592097' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001694  Lock_time: 0.001337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871315;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:14.592201' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871316;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871316;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:15.589876' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871317;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:16.589649' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1913  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871317;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1913  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871317;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:15:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1914  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871318;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1914  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871318;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871318;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:17.589821' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000368  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871319;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:18.589651' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000610  Lock_time: 0.000357  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:19.592676' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871321;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:20.589787' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871322;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:21.592718' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871323;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:22.592538' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871323;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:22.592629' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001157  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871324;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:23.5921' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871324;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:23.594012' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871325;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001218  Lock_time: 0.000970  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871325;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:24.592015' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001224  Lock_time: 0.001009  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871326;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:25.592355' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001556  Lock_time: 0.001377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871326;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:25.592592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871327;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:26.59241' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1917  Schema:   QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871327;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1917  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871327;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:15:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1918  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871328;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1918  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871328;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871328;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:27.592584' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:28.589745' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871329;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:28.589923' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000847  Lock_time: 0.000470  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871330;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:29.589565' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001411  Lock_time: 0.001006  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871330;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871331;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:30.592448' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000600  Lock_time: 0.000304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871332;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:31.592615' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871333;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:32.592451' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871333;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:32.592489' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871334;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:33.59249' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871334;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:33.59268' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871335;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871335;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:34.592755' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871336;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:35.589431' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871337;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:36.592331' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1921  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871337;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1921  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871337;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:15:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1922  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871338;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1922  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871338;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871338;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:37.592196' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871339;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:38.592412' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871340;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:39.592479' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871341;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:40.592464' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871341;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:40.592605' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000610  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871342;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871343;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:42.592169' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001268  Lock_time: 0.000990  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871344;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:43.592236' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871345;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:44.592333' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871345;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:44.592653' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871346;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871346;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:45.59221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871347;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:46.589851' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1925  Schema:   QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871347;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1925  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000235  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871347;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:15:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1926  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871348;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1926  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871348;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871348;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871348;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:47.590125' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871349;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:48.589771' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001283  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871350;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001151  Lock_time: 0.000850  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871350;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:49.589453' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001386  Lock_time: 0.000749  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871350;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:15:50.636'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:15:50.636')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:15:50.636')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:15:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:50.59219' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:51.59194' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000648  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871352;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871353;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:52.589712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871354;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:53.589705' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871355;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:54.592833' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:54.593087' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871356;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871356;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:55.589816' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000419  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871357;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:56.592522' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1929  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871357;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1929  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871357;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:15:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1930  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871358;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1930  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871358;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.001026  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:15:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871359;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:58.592429' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871360;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:15:59.592755' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001240  Lock_time: 0.001036  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871361;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:00.592425' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001324  Lock_time: 0.001116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871361;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:00.592333' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871362;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871363;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:02.589592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871364;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871364;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:03.592448' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:04.592435' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000827  Lock_time: 0.000640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871366;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:05.592392' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001245  Lock_time: 0.001082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001310  Lock_time: 0.001186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871367;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:06.592246' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1933  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871367;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1933  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871367;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:16:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1934  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871368;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1934  Schema:   QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871368;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001608  Lock_time: 0.001220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871368;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:07.592339' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001595  Lock_time: 0.001253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871368;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:07.592588' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871369;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871369;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871369;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:08.59221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871370;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:09.5924' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871370;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:09.592419' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001030  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871371;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:10.592304' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000822  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871371;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:10.592414' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871372;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:11.592669' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871373;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:12.592533' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871373;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:12.592825' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000802  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871374;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:16:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:14.589519' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871376;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871376;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:15.5924' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871377;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002978  Lock_time: 0.002870  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871377;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1937  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871377;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1937  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871377;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:16:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1938  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871378;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1938  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871378;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871378;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871379;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:18.589684' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871380;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:19.592544' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871381;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:20.592628' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871381;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:20.592497' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001129  Lock_time: 0.000980  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871382;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871382;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:21.592251' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000626  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871383;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:22.592152' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001115  Lock_time: 0.000859  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871384;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:23.592471' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871384;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:23.592399' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871385;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871385;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871385;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:24.592221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871386;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:25.592157' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871387;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871387;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:26.592378' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1941  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000108  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871387;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1941  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871387;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:16:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1942  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871388;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1942  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871388;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:27.592613' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871388;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:27.592526' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001111  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871389;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871390;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:29.592955' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871391;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001180  Lock_time: 0.000737  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871391;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:16:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871392;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:31.592423' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001007  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871393;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:32.592178' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001292  Lock_time: 0.001071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871394;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:33.592148' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871395;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871396;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:35.592466' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871396;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:35.592426' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000880  Lock_time: 0.000680  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871397;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871397;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:36.592028' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1945  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871397;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1945  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000228  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871397;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:16:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1946  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000205  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871398;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1946  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000232  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871398;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871398;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871399;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:38.592816' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000573  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871400;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000936  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871401;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:40.59227' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871401;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:40.592348' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871402;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:41.592068' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871403;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:42.59208' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001783  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871404;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871404;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:43.592275' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001554  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871405;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871405;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871406;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:45.589936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871406;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:45.589865' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871407;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1949  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871407;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1949  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871407;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:16:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1950  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871408;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1950  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000123  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871408;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871408;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871409;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:48.592139' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:49.589549' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002174  Lock_time: 0.001438  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871410;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:16:50.635'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:16:50.635')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:16:50.635')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:16:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871411;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:50.592517' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871412;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:51.592458' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871412;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:51.592443' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871413;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:52.592376' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871413;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:52.592417' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871414;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:53.592506' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000971  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871414;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871415;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871416;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:55.592337' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871416;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:55.59219' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871417;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001107  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871417;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871417;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:56.592087' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1953  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871417;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1953  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871417;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:16:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1954  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871418;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1954  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871418;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000800  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871418;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:57.591911' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001398  Lock_time: 0.001156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871418;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:57.592109' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:16:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871419;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:58.591981' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:59.590012' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871420;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:16:59.589986' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871421;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:00.589548' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001554  Lock_time: 0.001281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871421;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:00.589686' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871422;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871422;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871423;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:02.592176' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871423;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:02.592278' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.001087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871424;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:03.592338' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000949  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871425;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:04.591851' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000945  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871425;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:04.592034' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000884  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871426;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:05.591675' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871427;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:06.589592' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1957  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871427;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1957  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871427;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:17:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1958  Schema:   QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871428;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1958  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871428;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871428;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:07.592445' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871428;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871429;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:08.592413' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871430;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871430;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:09.592714' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000899  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871431;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:10.59242' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000749  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871431;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:10.592623' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000714  Lock_time: 0.000513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871432;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.001101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871432;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:11.592424' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:12.592192' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000509  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871434;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:13.591928' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000516  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871434;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:13.592087' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871435;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871435;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:14.589674' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871436;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:15.589608' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871436;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871437;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:16.590905' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1961  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871437;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1961  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871437;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:17:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1962  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871438;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1962  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871438;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:17.58994' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:18.592348' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000906  Lock_time: 0.000739  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871440;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:19.592062' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000971  Lock_time: 0.000810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:19.592006' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:20.589719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871442;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:21.592713' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000345  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871443;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:22.592602' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871443;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:22.592566' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000797  Lock_time: 0.000640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871444;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:23.59229' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001312  Lock_time: 0.001107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871444;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000514  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871445;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:24.59219' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001517  Lock_time: 0.001184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871446;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000556  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871446;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:25.592299' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871447;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1965  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871447;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1965  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871447;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:17:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1966  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871448;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1966  Schema:   QC_hit: No
# Query_time: 0.000106  Lock_time: 0.000067  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871448;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871448;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871448;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:27.592184' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871449;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:28.592097' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871449;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:28.591939' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871450;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871450;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:29.589764' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871451;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:30.589625' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871452;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871453;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871453;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:32.589472' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871454;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:33.592386' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001775  Lock_time: 0.001616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871455;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:34.592068' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002367  Lock_time: 0.002202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871455;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001171  Lock_time: 0.001034  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:35.591965' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001198  Lock_time: 0.000983  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871456;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:35.591937' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002141  Lock_time: 0.001963  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871457;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001299  Lock_time: 0.001116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871457;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:36.58932' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1969  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871457;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1969  Schema:   QC_hit: No
# Query_time: 0.000098  Lock_time: 0.000061  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871457;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:17:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1970  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871458;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1970  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871458;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871458;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871458;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:37.592601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871459;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871460;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:39.589649' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871461;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:40.592376' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871462;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:41.591118' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001174  Lock_time: 0.000942  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871462;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000957  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871463;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:42.592049' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871464;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871465;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:44.590468' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000629  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871466;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:45.592513' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001488  Lock_time: 0.001244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871467;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1973  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871467;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1973  Schema:   QC_hit: No
# Query_time: 0.000153  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871467;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:17:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1974  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871468;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1974  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871468;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871468;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:47.59235' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871469;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:48.592093' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001503  Lock_time: 0.001233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871470;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:49.59228' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000724  Lock_time: 0.000328  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871470;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:49.592279' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001316  Lock_time: 0.000694  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871470;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:17:50.636'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:17:50.636')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:17:50.636')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:17:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001266  Lock_time: 0.001067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871471;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:50.592289' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871472;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871472;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:51.592218' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000316  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871473;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:52.59257' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871473;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:52.592393' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871474;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000912  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871474;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871474;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:53.592233' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871475;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:54.592055' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871476;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:55.590122' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871476;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:55.590043' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871477;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:56.589901' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1977  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871477;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1977  Schema:   QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871477;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:17:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1978  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871478;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1978  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871478;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871478;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:57.589875' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:17:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001858  Lock_time: 0.001479  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871479;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:18:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000532  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:17:59.589556' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871481;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000737  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871482;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:01.592208' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871483;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:02.592113' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001322  Lock_time: 0.001060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871484;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871485;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:04.592366' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000904  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871486;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000681  Lock_time: 0.000409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871486;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:05.589294' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:06.592265' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1981  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871487;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1981  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871487;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:18:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1982  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871488;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1982  Schema:   QC_hit: No
# Query_time: 0.001118  Lock_time: 0.001036  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871488;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871488;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871489;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:08.592936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000703  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:08.592918' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871490;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871490;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:18:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871491;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:10.592416' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000975  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871492;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000399  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:11.592063' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871493;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:12.589941' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871494;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:13.592359' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:14.592043' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000945  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871496;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:15.591999' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871496;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:15.592106' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871497;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:16.589853' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1985  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871497;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1985  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871497;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:18:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1986  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871498;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1986  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871498;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:17.589811' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000907  Lock_time: 0.000662  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871498;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:17.589634' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:18.592817' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871500;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000736  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871501;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:20.592383' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871502;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871503;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:22.58972' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000675  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871504;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871505;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:24.592808' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871506;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:25.589614' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871507;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:26.592326' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1989  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871507;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1989  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871507;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:18:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1990  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871508;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1990  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871508;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871508;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:27.592742' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871509;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:28.592763' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001003  Lock_time: 0.000814  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871509;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000920  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871510;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:29.59216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001349  Lock_time: 0.001177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871511;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:30.592321' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000722  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871512;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871513;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:32.592855' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871514;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871515;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:34.592119' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871516;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:18:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871517;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:36.589715' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1993  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871517;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1993  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871517;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:18:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1994  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871518;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1994  Schema:   QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000411  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871518;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871518;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:37.592781' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000756  Lock_time: 0.000570  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871519;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000398  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871519;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:38.592557' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001398  Lock_time: 0.001203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871520;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:39.592242' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001433  Lock_time: 0.001235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:39.592178' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000838  Lock_time: 0.000567  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871521;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:40.59235' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871521;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:40.592835' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871522;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871522;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:41.592009' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871523;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:42.592202' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871523;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:42.592444' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001079  Lock_time: 0.000885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871524;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871524;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:43.592015' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871525;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:44.589585' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871526;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:45.592509' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000664  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871527;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871527;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1997  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871527;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1997  Schema:   QC_hit: No
# Query_time: 0.000131  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871527;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:18:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1998  Schema:   QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000265  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871528;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 1998  Schema:   QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000272  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871528;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871528;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:47.592643' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001190  Lock_time: 0.000991  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871528;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:47.592675' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871529;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871530;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:49.592689' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000430  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871530;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:18:50.635'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:18:50.635')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:18:50.635')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:18:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871531;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:50.589385' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871532;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:51.592961' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000857  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871533;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001000  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871533;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:52.592712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871534;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:53.589494' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871535;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:54.589443' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871536;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:55.589621' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871537;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:56.592747' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2001  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871537;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2001  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871537;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:18:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2002  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871538;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2002  Schema:   QC_hit: No
# Query_time: 0.000143  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871538;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001047  Lock_time: 0.000910  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871538;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871538;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:57.592263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:18:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001216  Lock_time: 0.001016  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871539;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:58.592373' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000615  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871539;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:18:58.592602' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871540;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:00.592173' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000688  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871541;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:00.592392' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871542;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871543;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:02.589566' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000527  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871544;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:03.592569' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001157  Lock_time: 0.000946  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871545;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:04.591836' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001098  Lock_time: 0.000886  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871545;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:04.591879' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000683  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871546;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:19:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871547;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:06.593391' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2005  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871547;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2005  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871547;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:19:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2006  Schema:   QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000262  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871548;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2006  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871548;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001179  Lock_time: 0.000917  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871548;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871548;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:07.592802' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871549;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:19:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:09.592743' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000540  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871551;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000325  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871552;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:11.592475' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000974  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871553;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871554;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:13.589454' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871555;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:14.592093' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871555;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:14.592549' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871556;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871556;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871556;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:15.592504' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871557;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:16.592152' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2009  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871557;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2009  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871557;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:19:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2010  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000225  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871558;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2010  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871558;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871558;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:17.589691' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871559;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:18.589739' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871560;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:19.592465' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000506  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871562;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:21.592326' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001193  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871562;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:21.592384' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001050  Lock_time: 0.000416  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871563;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:22.59245' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000052  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:23.592521' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871564;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871565;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:24.591521' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871566;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:25.592597' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871566;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:25.592551' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871567;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:26.592547' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2013  Schema:   QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871567;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2013  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871567;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:19:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2014  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871568;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2014  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871568;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:27.589703' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000659  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871568;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:27.589552' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871569;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871569;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:28.589955' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:29.590217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871571;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:30.592468' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871572;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:31.592352' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000686  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871572;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871573;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871573;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:32.589404' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871574;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:33.592511' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001000  Lock_time: 0.000830  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871575;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:34.592099' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000950  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:34.59215' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871576;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:35.592077' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871577;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:36.592201' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2020  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871577;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2020  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871577;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:19:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2021  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000174  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871578;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2021  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871578;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871578;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:37.59241' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000685  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871578;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:37.592626' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871579;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871579;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:38.592203' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:39.59218' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871580;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:39.592229' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871581;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:40.595978' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871582;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:19:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000569  Lock_time: 0.000477  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871583;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:42.59282' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871584;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:43.589527' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:43.58961' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871585;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:44.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871586;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:45.589929' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871587;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:46.590233' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2024  Schema:   QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000262  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871587;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2024  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871587;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:19:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2025  Schema:   QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000252  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871588;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2025  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871588;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000875  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871588;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:47.589701' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.003286  Lock_time: 0.001298  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871588;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:19:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871589;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:48.592567' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001032  Lock_time: 0.000820  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:49.592547' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000962  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871590;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:49.592502' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000822  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871590;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:19:50.636'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:19:50.636')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:19:50.636')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:19:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871591;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:50.589504' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871591;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:50.589544' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871592;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871592;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:51.592549' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871593;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001346  Lock_time: 0.001088  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871594;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:53.592312' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001485  Lock_time: 0.001147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871594;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:53.592188' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871595;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:54.591998' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871595;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:54.591875' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871596;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:55.58967' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001816  Lock_time: 0.001624  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871597;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:56.589651' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001367  Lock_time: 0.001155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871597;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2028  Schema:   QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000278  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871597;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2028  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871597;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:19:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2029  Schema:   QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000250  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871598;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2029  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871598;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871598;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:57.59252' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:19:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871599;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:58.592585' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:19:59.592198' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001405  Lock_time: 0.001201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871600;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.001061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871601;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:00.592031' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001252  Lock_time: 0.001086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871601;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:00.591987' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:01.5897' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871602;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871603;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:02.590011' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001019  Lock_time: 0.000868  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871604;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:03.589573' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000484  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871604;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:03.589499' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871605;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:04.592524' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871606;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:05.592378' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871606;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:05.592678' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871607;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:06.592313' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2032  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871607;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2032  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000263  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871607;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:20:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2033  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871608;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2033  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871608;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001549  Lock_time: 0.001330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:07.592039' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001540  Lock_time: 0.001287  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871608;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:07.591997' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871609;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:08.589811' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000514  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871609;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:20:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:09.589528' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871611;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:10.592478' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000859  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871612;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001090  Lock_time: 0.000981  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871612;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:11.592754' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001288  Lock_time: 0.001094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:12.591897' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001007  Lock_time: 0.000691  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871613;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:12.591881' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000363  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871614;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:13.589421' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871615;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:14.592356' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001038  Lock_time: 0.000810  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871616;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871617;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:16.589626' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2036  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871617;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2036  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871617;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:20:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2037  Schema:   QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000246  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871618;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2037  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871618;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:17.59297' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000717  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871619;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871619;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:18.589545' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871620;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:19.592224' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000735  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871620;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:19.592205' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871621;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871621;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:20.589731' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:21.592962' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871622;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:21.59351' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871623;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871623;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:22.58951' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871624;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:23.591851' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001268  Lock_time: 0.000930  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871625;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:24.592268' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001750  Lock_time: 0.001246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871625;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:25.589837' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871626;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:20:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871627;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:26.589995' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2040  Schema:   QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000268  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871627;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2040  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871627;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:20:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2041  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871628;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2041  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871628;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871628;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:27.589574' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871629;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:28.592718' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871630;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:29.592444' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000798  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871631;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000873  Lock_time: 0.000693  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871631;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:30.592479' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001322  Lock_time: 0.001075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871632;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:31.592359' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001497  Lock_time: 0.001141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871632;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:31.592135' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001257  Lock_time: 0.000982  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871633;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:32.592382' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001352  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871633;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:32.592524' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871634;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:33.592351' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001489  Lock_time: 0.001224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871634;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:33.592329' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871635;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871635;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:34.59206' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871636;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:35.589867' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871637;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871637;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2044  Schema:   QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000276  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871637;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2044  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871637;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:20:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2045  Schema:   QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871638;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2045  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871638;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001296  Lock_time: 0.000960  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871638;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:37.589882' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001320  Lock_time: 0.001108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871639;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:38.58976' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001727  Lock_time: 0.001260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871639;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:20:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871640;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:39.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871641;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:40.592441' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000894  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871642;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871642;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:41.592312' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001408  Lock_time: 0.001181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871643;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000772  Lock_time: 0.000577  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871643;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:42.592167' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871644;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:43.589875' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871645;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000952  Lock_time: 0.000347  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871646;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:20:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000830  Lock_time: 0.000608  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871647;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:46.589729' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871647;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:46.589691' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2048  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871647;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2048  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871647;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:20:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2049  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871648;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2049  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871648;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871648;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:47.592307' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000891  Lock_time: 0.000635  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871649;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:48.59221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000149  Lock_time: 0.000043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871650;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:49.589722' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002577  Lock_time: 0.001856  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871650;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:20:50.635'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:20:50.635')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:20:50.635')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:20:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000576  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871651;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:50.592453' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871652;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:51.592017' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871652;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:51.5923' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871653;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:52.589549' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871653;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:52.589575' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871654;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:53.59264' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000829  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871655;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:54.592261' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.000791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:55.592214' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001405  Lock_time: 0.000942  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:55.591989' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871657;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871657;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:56.590349' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2052  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871657;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2052  Schema:   QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871657;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:20:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2053  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871658;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2053  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871658;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871658;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:57.590025' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:20:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871659;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:58.589703' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:58.589542' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871660;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871660;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:20:59.593053' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871661;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:00.590009' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:01.589697' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000866  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871663;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871663;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:02.589627' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000074  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871664;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:03.592312' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871665;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:04.591962' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000612  Lock_time: 0.000397  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:05.591981' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:06.589531' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871667;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:06.58954' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2056  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871667;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2056  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871667;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:21:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2057  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871668;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2057  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871668;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871668;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:07.59292' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:08.58953' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871669;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871670;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:09.592672' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871670;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:09.592634' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000758  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871671;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871671;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:10.592472' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001630  Lock_time: 0.001481  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871672;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:11.592312' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001622  Lock_time: 0.001352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:11.592444' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871673;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000929  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871673;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:12.592066' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871674;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:13.589766' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871675;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:14.592463' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871676;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:15.592333' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001294  Lock_time: 0.001021  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871677;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001623  Lock_time: 0.001247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871677;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:16.592421' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2060  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871677;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2060  Schema:   QC_hit: No
# Query_time: 0.000108  Lock_time: 0.000064  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871677;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:21:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2061  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871678;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2061  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871678;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001301  Lock_time: 0.001124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871678;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:17.592416' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871679;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871680;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871680;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:19.590243' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871681;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:20.592351' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000898  Lock_time: 0.000304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871682;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:21:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871683;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001356  Lock_time: 0.001045  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871684;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:23.592275' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000493  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871684;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:23.592164' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871685;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001423  Lock_time: 0.001278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871685;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:24.592259' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871686;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:25.592239' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871686;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:25.592325' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001023  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871687;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000315  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871687;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:26.591931' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2064  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871687;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2064  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871687;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:21:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2065  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871688;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2065  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871688;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000871  Lock_time: 0.000401  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871688;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:21:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:28.592647' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871690;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:29.595254' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871691;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:30.592539' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:30.592464' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871692;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:31.592659' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:32.589944' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871694;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:33.589846' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871695;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:34.592354' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871696;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:35.592278' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001161  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871696;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000058  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871697;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2068  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000224  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871697;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2068  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000208  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871697;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:21:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2069  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871698;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2069  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871698;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871698;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001304  Lock_time: 0.001180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:37.592342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000395  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871699;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:38.592046' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001205  Lock_time: 0.001096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871699;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:38.591963' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871700;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:39.589591' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871701;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:40.592638' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871702;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:41.59265' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001501  Lock_time: 0.001305  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871703;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001345  Lock_time: 0.000999  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871704;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:43.592495' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001690  Lock_time: 0.001317  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871704;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:43.592461' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000644  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871705;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871705;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871705;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:44.592272' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871706;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:45.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000500  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871707;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:46.59211' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2072  Schema:   QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871707;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2072  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871707;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:21:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2073  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871708;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2073  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871708;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871708;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871708;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001303  Lock_time: 0.001132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871708;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:47.592372' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871709;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001240  Lock_time: 0.001137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871709;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:48.59256' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871710;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:49.592283' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001450  Lock_time: 0.001112  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871710;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:21:50.637'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:21:50.637')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:21:50.637')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:21:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871711;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:50.592356' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871711;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:50.592733' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871712;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871713;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:52.591841' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001283  Lock_time: 0.001041  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871714;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:53.589862' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001576  Lock_time: 0.001207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871714;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:53.589854' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871715;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:54.589792' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871716;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871717;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:56.592435' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001401  Lock_time: 0.001148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871717;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2076  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871717;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2076  Schema:   QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000383  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871717;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:21:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2077  Schema:   QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000244  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871718;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2077  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871718;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001942  Lock_time: 0.001217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871718;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:57.592525' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001659  Lock_time: 0.000936  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871718;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:57.592485' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:21:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871719;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:58.592446' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:21:59.592116' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871721;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871721;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:00.592336' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871722;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:01.592103' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871722;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:01.592183' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001308  Lock_time: 0.001129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871723;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000426  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871723;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:02.592236' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001268  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871724;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871725;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.001044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871725;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:04.592149' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871726;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:05.59221' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001361  Lock_time: 0.001174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:05.592557' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871727;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:06.592255' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2080  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871727;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2080  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871727;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:22:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2081  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871728;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2081  Schema:   QC_hit: No
# Query_time: 0.000159  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871728;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871728;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:07.592283' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871728;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:07.592392' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871729;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:08.592056' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871730;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:09.589793' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871730;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:09.589892' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871731;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871731;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:10.589684' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871732;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:11.592717' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871732;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:11.592605' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871733;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871734;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:13.592599' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871734;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:13.592465' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001150  Lock_time: 0.000954  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871735;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:14.592235' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000980  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871735;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:14.592293' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871736;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:15.592034' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001194  Lock_time: 0.000933  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871736;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:15.591866' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871737;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:16.589665' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2084  Schema:   QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000285  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871737;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2084  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871737;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:22:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2085  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871738;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2085  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871738;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871738;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000876  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871738;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:17.592489' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871739;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000811  Lock_time: 0.000669  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871740;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:19.592025' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001409  Lock_time: 0.001276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871740;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871741;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:20.589622' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000771  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871741;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:22:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871742;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:21.592732' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871742;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:21.592678' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.000856  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871743;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871743;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:22.592592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871744;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:23.589928' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871744;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:23.589986' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871745;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000409  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871745;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:24.589543' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000425  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871746;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:25.589787' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001052  Lock_time: 0.000857  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871747;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:26.589829' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2088  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871747;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2088  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871747;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:22:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2089  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871748;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2089  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871748;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001443  Lock_time: 0.001188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871748;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:27.589647' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000496  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871749;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000851  Lock_time: 0.000508  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871750;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:29.592292' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871750;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:29.59297' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871751;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:30.592594' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.001066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871752;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:31.589719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871753;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:32.589862' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871754;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:33.589713' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871754;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:33.589789' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871755;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:34.59265' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871756;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:35.589632' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871757;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:36.592838' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2092  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871757;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2092  Schema:   QC_hit: No
# Query_time: 0.000138  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871757;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:22:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2093  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871758;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2093  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871758;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871758;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871760;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:40.592506' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871762;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:41.592514' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871762;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871763;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:42.592668' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000691  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871764;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:43.592418' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001352  Lock_time: 0.001124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871764;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:43.592439' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871765;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871765;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:44.592426' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871766;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:45.589497' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871767;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:46.592299' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2096  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871767;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2096  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871767;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:22:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2097  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871768;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2097  Schema:   QC_hit: No
# Query_time: 0.000224  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871768;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000920  Lock_time: 0.000698  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871768;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000642  Lock_time: 0.000360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871768;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:47.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871769;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000884  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871769;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871770;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:49.592401' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871770;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:22:50.635'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:22:50.635')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:22:50.635')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:22:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000828  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871771;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001536  Lock_time: 0.001258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871771;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:50.590189' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871772;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000765  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871772;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:51.590374' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871773;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:52.592062' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000908  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871774;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:53.590125' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000949  Lock_time: 0.000721  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871775;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:54.591965' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000211  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871776;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:55.58999' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871777;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2100  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871777;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2100  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871777;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:22:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2101  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871778;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2101  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871778;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871778;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:57.592747' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:22:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001478  Lock_time: 0.001032  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871779;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871779;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:58.592367' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:59.592332' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000396  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871780;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:22:59.592552' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:00.593169' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871782;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871782;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:01.589712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871783;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:02.589918' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001076  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871784;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871784;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:03.589652' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871785;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:04.592339' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871785;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:04.592981' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871786;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871786;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:05.592655' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871787;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000918  Lock_time: 0.000774  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871787;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:06.592302' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2104  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871787;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2104  Schema:   QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000076  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871787;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:23:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2105  Schema:   QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871788;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2105  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871788;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871788;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:07.59231' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871789;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001291  Lock_time: 0.001067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:08.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871790;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001078  Lock_time: 0.000887  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871790;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:09.59266' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001128  Lock_time: 0.000860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871791;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:10.592264' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001221  Lock_time: 0.001036  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871792;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:11.592626' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001807  Lock_time: 0.001558  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871793;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:12.592411' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000748  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871794;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000365  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871794;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871795;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:14.592488' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001370  Lock_time: 0.001087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871796;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:15.592047' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001044  Lock_time: 0.000771  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871796;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:15.591937' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871797;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871797;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:16.59035' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2108  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871797;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2108  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871797;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:23:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2109  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871798;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2109  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871798;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001090  Lock_time: 0.000891  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871798;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:17.589625' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871799;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:18.592575' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000985  Lock_time: 0.000815  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871800;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:19.592225' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000927  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871800;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:19.59238' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001303  Lock_time: 0.001076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871801;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:20.592019' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871802;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:21.589692' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000612  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871802;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:23:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871803;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:22.592723' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871803;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:22.592748' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871804;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:23.589525' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:24.59225' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871806;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:25.592015' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002156  Lock_time: 0.001860  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871806;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:25.592117' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000685  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871807;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871807;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:26.589594' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2112  Schema:   QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871807;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2112  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871807;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:23:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2113  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871808;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2113  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871808;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871808;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:27.592566' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871809;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:28.596532' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000843  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871809;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:23:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871810;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871810;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871811;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:30.590035' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871812;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:31.589759' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000637  Lock_time: 0.000444  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871813;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:32.589619' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871814;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:33.592612' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871814;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:33.592541' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001454  Lock_time: 0.001240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871815;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:34.592351' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001194  Lock_time: 0.000863  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871815;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:34.592195' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871816;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001199  Lock_time: 0.001057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:35.592017' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000848  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871817;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:36.592225' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2116  Schema:   QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871817;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2116  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871817;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:23:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2117  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000209  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871818;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2117  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871818;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871818;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871818;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:37.592287' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871819;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:38.592179' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000781  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871820;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:39.592032' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001002  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871821;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:40.591944' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871822;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:41.589445' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871823;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871823;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:42.592819' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871824;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:43.589841' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871825;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:44.589738' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871826;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:45.589544' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001933  Lock_time: 0.001277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871826;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:23:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871827;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:46.592232' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2120  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000100  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871827;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2120  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871827;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:23:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2121  Schema:   QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000156  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871828;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2121  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871828;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871828;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:47.592437' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871829;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:48.589579' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:49.592669' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871830;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:49.592839' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001332  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871830;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:23:50.637'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:23:50.637')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:23:50.637')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:23:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001227  Lock_time: 0.001050  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871831;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.001012  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:50.59237' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871832;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871833;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:52.592317' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871834;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001208  Lock_time: 0.001104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871834;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871834;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:53.592265' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871835;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:54.5896' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871836;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:55.592522' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871837;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:56.589478' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001067  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871837;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2124  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871837;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2124  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871837;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:23:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2125  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871838;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2125  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871838;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871838;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:57.592325' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:23:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871839;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:58.592447' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871840;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:23:59.589758' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871841;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:00.589718' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871842;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:01.589909' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871842;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:01.590183' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871843;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871843;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:02.590117' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871844;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:03.589888' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871844;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:03.590173' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871845;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871845;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:04.591937' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871846;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:05.59225' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871846;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871847;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:06.592289' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871847;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:06.592257' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2132  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871847;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2132  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871847;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:24:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2133  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871848;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2133  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871848;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871848;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000528  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871848;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:24:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871849;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:08.592567' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871850;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871850;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:09.592613' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871851;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:10.589889' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000509  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871851;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:10.589695' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000492  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871852;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:24:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871853;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:12.593163' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001360  Lock_time: 0.001203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871854;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:13.5921' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000826  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871854;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:13.592087' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871855;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:14.589712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871856;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871856;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:15.592589' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871857;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000851  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871857;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:16.592072' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2136  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871857;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2136  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871857;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:24:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2137  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871858;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2137  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871858;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000563  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871858;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871858;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:17.589646' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871859;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:18.592461' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001421  Lock_time: 0.001250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871860;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871860;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:19.592124' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871861;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000853  Lock_time: 0.000654  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871861;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:20.589717' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871862;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:21.589548' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001733  Lock_time: 0.001156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871863;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:24:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871864;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:23.592592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001514  Lock_time: 0.001327  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:24.592271' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000684  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871865;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:24.592454' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000372  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871866;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:25.592479' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000719  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871867;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:26.592692' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2140  Schema:   QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000242  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871867;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2140  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871867;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:24:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2141  Schema:   QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871868;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2141  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871868;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871868;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000630  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871868;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:27.589592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:28.592168' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871869;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:28.592242' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871870;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:29.591834' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871871;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:30.589577' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871872;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:31.592358' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871873;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:32.592293' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871874;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:33.592492' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000990  Lock_time: 0.000769  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871875;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:34.592356' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001629  Lock_time: 0.001337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871875;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.001164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:35.592431' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000919  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871876;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:35.592394' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871877;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:36.592251' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871877;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2144  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871877;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2144  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871877;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:24:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2145  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000206  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871878;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2145  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871878;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871878;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:37.591851' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871878;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:37.592403' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871879;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001529  Lock_time: 0.001343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871880;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:39.590397' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000903  Lock_time: 0.000754  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871881;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871881;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:40.592356' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871882;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:41.590168' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871883;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:42.592061' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871884;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:43.58983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871884;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:24:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871885;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:44.589745' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871886;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:45.591604' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871887;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871887;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:46.589481' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2148  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871887;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2148  Schema:   QC_hit: No
# Query_time: 0.000147  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871887;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:24:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2149  Schema:   QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000259  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871888;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2149  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871888;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871888;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:47.592877' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871888;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:47.59284' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871889;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:48.592549' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871890;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:49.59293' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871890;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:49.592741' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1394  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001322  Lock_time: 0.000556  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871890;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:24:50.636'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:24:50.636')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:24:50.636')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:24:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871891;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:50.589472' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871891;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:50.589422' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871892;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:51.592522' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871893;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:52.592136' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871893;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:52.592189' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000869  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871894;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871894;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:53.592536' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871895;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:54.589817' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871895;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:24:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871896;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:55.589837' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:56.589914' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871897;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:56.589872' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2152  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871897;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2152  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871897;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:24:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2153  Schema:   QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871898;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2153  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871898;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871898;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871898;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:57.589906' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:24:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001023  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871899;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:58.589548' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871900;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:24:59.592468' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001339  Lock_time: 0.001071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:00.592282' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001229  Lock_time: 0.000964  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871901;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:00.592195' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871902;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001355  Lock_time: 0.001188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:01.592395' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871903;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:02.592214' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871904;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000693  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871905;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:04.59194' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871906;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:05.589827' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871907;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:06.589764' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2156  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871907;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2156  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000153  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871907;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:25:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2157  Schema:   QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871908;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2157  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871908;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871908;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:07.592443' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000580  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871909;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:08.592232' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000971  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871910;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871911;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001639  Lock_time: 0.001333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871911;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:10.591858' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000339  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871912;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:12.592465' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000900  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871914;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000318  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871914;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:13.592068' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001284  Lock_time: 0.000964  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871915;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:14.591876' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871915;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:14.591812' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871916;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:15.58973' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871916;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:15.589881' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000531  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871917;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871917;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:16.59141' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2161  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871917;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2161  Schema:   QC_hit: No
# Query_time: 0.000155  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871917;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:25:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2162  Schema:   QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871918;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2162  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871918;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000482  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:17.592955' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:18.589422' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000809  Lock_time: 0.000395  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871919;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:18.589461' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871920;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:19.592539' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:20.5924' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000865  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871921;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871922;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001396  Lock_time: 0.001237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871922;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:21.592233' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871923;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871924;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871925;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:24.592637' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000742  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871925;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:24.592712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001292  Lock_time: 0.001123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871926;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:25.592555' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001416  Lock_time: 0.001134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:25.592435' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871927;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:26.594293' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2165  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871927;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2165  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871927;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:25:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2166  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871928;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2166  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871928;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000696  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871928;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000705  Lock_time: 0.000364  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871928;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:27.589797' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000305  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:28.589636' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871930;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:29.592337' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871931;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:30.592718' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871931;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:30.592419' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000851  Lock_time: 0.000340  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871932;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871932;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871932;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:31.592711' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871933;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871933;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:32.589752' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000872  Lock_time: 0.000531  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871934;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:33.590401' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000733  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871935;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:25:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000670  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871936;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:35.589662' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871937;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2173  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871937;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2173  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871937;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:25:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2175  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871938;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2175  Schema:   QC_hit: No
# Query_time: 0.000151  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871938;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871938;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871938;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:37.589577' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871939;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:38.592366' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871940;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:39.59198' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871941;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:40.589892' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871941;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:40.59005' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871942;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:41.589522' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871943;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:42.59291' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001676  Lock_time: 0.001101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871944;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871944;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:43.592416' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001134  Lock_time: 0.000989  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871945;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:44.592441' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001483  Lock_time: 0.001131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871946;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:45.592543' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000394  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871947;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871947;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:46.592499' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2181  Schema:   QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871947;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2181  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871947;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:25:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2182  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871948;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2182  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871948;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871948;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871949;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:48.59246' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871949;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:48.592613' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871950;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000709  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871950;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:49.591844' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 1416  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001102  Lock_time: 0.000586  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646871950;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:25:50.638'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:25:50.638')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:25:50.638')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:25:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001084  Lock_time: 0.000776  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646871951;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:50.591887' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871951;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:50.592073' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000646  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000929  Lock_time: 0.000717  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871952;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:51.589576' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871953;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:52.592626' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000831  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871954;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871954;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871954;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:53.592745' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871955;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871955;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:54.589569' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871956;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:55.592398' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871957;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:56.592477' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2188  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871957;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2188  Schema:   QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871957;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:25:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2189  Schema:   QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871958;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2189  Schema:   QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871958;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000768  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871958;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000788  Lock_time: 0.000655  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871958;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871958;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:57.592674' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:25:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000978  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871959;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871959;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:58.592599' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871960;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000877  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871960;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:25:59.592216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001232  Lock_time: 0.001024  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:00.591807' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871962;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:01.589835' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:02.589733' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871964;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:03.589591' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871965;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:04.592374' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000987  Lock_time: 0.000762  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871966;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:05.592248' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871967;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:06.589527' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000322  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:06.589582' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2193  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871967;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2193  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000210  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871967;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:26:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2194  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871968;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2194  Schema:   QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871968;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871968;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:07.59258' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000292  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:08.592443' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000711  Lock_time: 0.000503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871970;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:09.592141' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000667  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871970;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871971;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871972;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:11.589476' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871973;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:12.592339' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001337  Lock_time: 0.001062  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871974;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:13.592268' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001001  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871974;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:14.589737' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000753  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871975;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:14.589729' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871976;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000638  Lock_time: 0.000435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871976;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:15.589619' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:17
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2197  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871977;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2197  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871977;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:26:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2198  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871978;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2198  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871978;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000399  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871978;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:17.592508' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001320  Lock_time: 0.001079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871979;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:18.592335' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871979;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:18.592373' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871980;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000983  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871980;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:19.592291' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001383  Lock_time: 0.001149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871981;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:20.592341' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871982;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:21.59227' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871983;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:22.592305' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871983;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:22.592199' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871984;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001334  Lock_time: 0.001200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871985;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:24.591581' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001288  Lock_time: 0.001040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:25.592461' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000943  Lock_time: 0.000772  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871987;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:26.592948' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2201  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871987;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2201  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871987;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:26:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2202  Schema:   QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871988;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2202  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871988;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000660  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871988;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:27.589675' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871989;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871990;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871991;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:30.589719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871992;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:31.592587' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001049  Lock_time: 0.000875  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871993;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000583  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871994;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871994;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:33.592672' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001265  Lock_time: 0.001026  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871995;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:34.592294' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001416  Lock_time: 0.001229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871996;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:35.592646' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000551  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871997;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871997;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871997;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:36.592507' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2206  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871997;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2206  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871997;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:26:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2207  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646871998;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2207  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646871998;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871998;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:37.592651' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001138  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871998;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:37.592485' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871999;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:38.592413' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646871999;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:38.592285' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872000;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:39.591936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001228  Lock_time: 0.001043  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872000;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:40.58968' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872001;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:26:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872002;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:41.592483' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000431  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872003;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872004;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:43.592481' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000410  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872005;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:44.592074' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872006;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:45.589817' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872006;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:45.589943' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872007;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:46.589765' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2212  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2212  Schema:   QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:26:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2213  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872008;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2213  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872008;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872008;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:47.592868' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872009;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:48.592482' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872010;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:49.592527' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001183  Lock_time: 0.000479  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872010;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:26:50.636'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:26:50.636')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:26:50.636')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:26:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000555  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872011;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:50.592446' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001248  Lock_time: 0.001097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872012;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:51.592417' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001311  Lock_time: 0.001106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872012;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:51.592331' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001382  Lock_time: 0.001184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:52.592221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000485  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872014;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001199  Lock_time: 0.000987  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872014;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:53.592193' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872015;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:54.59197' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872016;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000485  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872016;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:55.59' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000727  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872017;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:56.589728' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2217  Schema:   QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000320  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2217  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:26:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2218  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872018;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2218  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872018;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872018;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872018;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872018;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:57.592489' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:26:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872019;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:58.592598' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872019;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:58.592623' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000823  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872020;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001030  Lock_time: 0.000807  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872020;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:26:59.592253' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872021;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:00.591944' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:01.589669' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872022;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:01.589763' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872023;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872023;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:02.592593' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001259  Lock_time: 0.001027  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872024;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872025;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:04.591887' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000940  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:04.592001' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:05.589875' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872027;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:06.58958' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2222  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2222  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:27:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2223  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2223  Schema:   QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000278  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872028;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872028;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:07.592663' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000429  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872029;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:08.592517' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000948  Lock_time: 0.000728  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872030;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:09.592339' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872031;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:10.592193' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872031;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:10.592373' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872032;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872032;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:11.592189' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000381  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872033;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:12.592073' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872034;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872035;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:14.592002' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000821  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872036;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872036;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:15.590113' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872037;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:16.589728' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:16.589488' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2229  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2229  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:27:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2230  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2230  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872038;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000261  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:17.592334' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872039;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872039;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:18.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872040;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:19.59207' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872040;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:19.592256' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000600  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872041;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:20.591986' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872042;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:21.589545' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872043;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:22.592907' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:23.589487' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:23.589861' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872045;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:24.592192' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872046;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872046;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:25.592269' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872047;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:26.592359' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2233  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2233  Schema:   QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:27:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2234  Schema:   QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2234  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872048;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:27.589883' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872048;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:27.589815' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872049;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:28.589752' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:29.592173' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872051;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:30.591945' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872051;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:30.592232' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872052;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000849  Lock_time: 0.000374  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872052;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:27:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872053;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:32.58974' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872054;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:33.592808' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000703  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872055;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:34.589867' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872056;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:35.589463' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872056;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:35.589645' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000912  Lock_time: 0.000570  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872057;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872057;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:36.589435' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2237  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2237  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:27:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2238  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2238  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000760  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872058;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:37.58958' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872059;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:38.592959' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872060;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:39.589706' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872061;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:40.592778' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872062;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872062;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:41.589495' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872063;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:42.59257' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001070  Lock_time: 0.000826  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872064;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:43.592245' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001150  Lock_time: 0.000874  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872064;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:43.592172' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872065;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:44.591889' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000461  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872065;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:44.592063' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872066;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:45.59212' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872067;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872067;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872067;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:46.593002' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2243  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2243  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:27:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2245  Schema:   QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2245  Schema:   QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000240  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872068;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872068;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:47.59' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001381  Lock_time: 0.000493  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872068;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:27:48.807'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:27:48.807')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:27:48.807')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:27:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000783  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872069;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:27:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872070;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:49.592669' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001009  Lock_time: 0.000426  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872070;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:27:50.638'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:27:50.638')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:27:50.638')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:27:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000850  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872071;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:27:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:51.589892' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872072;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:27:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001380  Lock_time: 0.001165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872073;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872074;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:53.592797' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872075;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872076;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:55.59241' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872077;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:56.592143' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2250  Schema:   QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2250  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000223  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:27:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2251  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2251  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000344  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872078;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:57.58988' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001862  Lock_time: 0.001620  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:57.589926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:27:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872079;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:58.590204' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872080;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:27:59.592193' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872081;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:00.589619' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001471  Lock_time: 0.001234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:02.59192' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001651  Lock_time: 0.001441  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872083;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:02.592103' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872084;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872084;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:03.590204' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872085;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872086;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:05.589725' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872087;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2259  Schema:   QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2259  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:28:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2260  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2260  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000624  Lock_time: 0.000442  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872088;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:07.592367' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872088;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:07.592573' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001017  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872089;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001255  Lock_time: 0.001089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:09.591948' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872091;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:10.589627' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872091;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:10.589619' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872092;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872092;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:11.59251' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001201  Lock_time: 0.000883  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872093;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:12.591972' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001366  Lock_time: 0.001117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872094;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:13.592216' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000980  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872094;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:13.592278' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001235  Lock_time: 0.001118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872095;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:14.59234' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872096;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001671  Lock_time: 0.001413  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872096;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:15.592566' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872097;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001209  Lock_time: 0.001060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872097;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:16.593866' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2264  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2264  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:28:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2265  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2265  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872098;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001798  Lock_time: 0.000968  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872098;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:28:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:18.593205' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000080  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872100;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001078  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872100;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:19.591912' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872101;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:20.59281' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872102;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:21.589491' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000876  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872102;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:28:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872103;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:22.590941' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000684  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872104;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:28:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:24.589747' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:25.592601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872107;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2269  Schema:   QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2269  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:28:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2270  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2270  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000093  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872108;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:27.592915' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000319  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872109;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872109;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:28.59001' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872110;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:29.589834' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000454  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872111;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:30.58971' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:31.592654' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872113;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:32.592526' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:33.589655' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872114;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:33.589492' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872115;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:34.589638' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872115;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:34.589589' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872116;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:35.589537' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:36.593408' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2275  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2275  Schema:   QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000245  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:28:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2276  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2276  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000771  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872118;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:28:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872119;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:38.59256' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872120;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872120;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001030  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872121;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:40.592212' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000182  Lock_time: 0.000054  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872122;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872123;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:42.592432' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:43.592314' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001078  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872125;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:44.592245' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000729  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872125;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:44.592179' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872126;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:45.591816' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872126;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:45.591896' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872127;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872127;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:46.589361' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2282  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2282  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:28:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2283  Schema:   QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000299  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2283  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:47.592489' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001295  Lock_time: 0.000590  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872128;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:28:48.806'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:28:48.806')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:28:48.806')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:28:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872129;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:48.592466' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:50
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000334  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872130;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:28:50.637'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:28:50.637')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:28:50.637')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:28:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000863  Lock_time: 0.000624  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:50.592469' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000865  Lock_time: 0.000614  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872132;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:51.592306' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001609  Lock_time: 0.001373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872132;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:51.592448' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872133;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001410  Lock_time: 0.001225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872133;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:52.59244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872134;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001613  Lock_time: 0.001266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872134;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:53.592668' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872135;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872136;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:55.592406' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000770  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:55.592219' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:56.592059' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2286  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2286  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000182  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:28:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2287  Schema:   QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000220  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2287  Schema:   QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000316  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001371  Lock_time: 0.000962  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872138;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:57.591994' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001553  Lock_time: 0.000774  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872138;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:57.591939' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:28:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000707  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872139;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:29:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872140;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:28:59.592438' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872141;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:00.592434' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000973  Lock_time: 0.000795  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872142;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:01.592135' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001360  Lock_time: 0.001156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872142;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000926  Lock_time: 0.000750  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872143;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:02.59205' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001869  Lock_time: 0.001545  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872144;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001028  Lock_time: 0.000592  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872144;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:03.592335' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872145;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:04.592213' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872146;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872147;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:06.592623' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000835  Lock_time: 0.000497  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872147;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:06.592428' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2291  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2291  Schema:   QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000243  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:29:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2292  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2292  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872148;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:07.59263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001173  Lock_time: 0.000961  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:08.592519' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001031  Lock_time: 0.000756  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872149;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:08.592594' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872150;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:09.592535' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872150;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:09.592581' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000303  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872151;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:10.592604' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000427  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872151;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:10.592564' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001015  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872152;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000662  Lock_time: 0.000454  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872152;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:11.592313' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001008  Lock_time: 0.000867  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872153;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:12.59221' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000767  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872153;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:12.592194' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872154;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001116  Lock_time: 0.000893  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872154;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:13.59222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:14.59189' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872156;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:15.58984' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872156;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:15.589627' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:16.592286' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000404  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872157;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:16.592353' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2295  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2295  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:29:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2296  Schema:   QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2296  Schema:   QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000768  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000890  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872158;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:17.592184' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872160;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:19.59265' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872160;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:19.592507' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872161;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000049  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872161;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000897  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872161;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:20.592644' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872162;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:21.592542' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000068  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872163;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872163;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:22.589539' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872164;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:23.589598' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872165;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872165;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:24.589379' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:25.592675' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000957  Lock_time: 0.000793  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872167;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000421  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872167;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:26.592047' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2299  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2299  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:29:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2300  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2300  Schema:   QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000262  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872168;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872168;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:29:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872169;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:28.589564' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001541  Lock_time: 0.001190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872170;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872170;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001369  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872171;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:30.592278' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001326  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872171;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:30.592242' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001374  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872172;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872172;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872172;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:31.592038' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872173;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872173;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:32.589864' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001710  Lock_time: 0.001516  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:33.589504' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001995  Lock_time: 0.001808  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872174;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872175;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:34.592204' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872175;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:34.592121' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000804  Lock_time: 0.000527  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872176;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872177;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:36.589735' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2303  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2303  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000084  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220310  0:29:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2304  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2304  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872178;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:37.592511' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872179;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:38.59252' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872179;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:38.592331' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872180;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000798  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872180;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872180;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:39.592144' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001231  Lock_time: 0.000999  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872181;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:40.591988' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001060  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872182;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:41.591864' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872183;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:42.589686' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:42.589801' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:43.589546' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872185;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:44.592852' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872186;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:45.59236' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001276  Lock_time: 0.001069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:46.592427' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2307  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2307  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:29:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2308  Schema:   QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000200  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2308  Schema:   QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872188;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:47.592335' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001545  Lock_time: 0.001366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872188;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:47.592546' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001223  Lock_time: 0.000406  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872188;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:29:48.806'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:29:48.806')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:29:48.806')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:29:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000741  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872189;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872189;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872190;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:49.592406' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000315  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872190;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:29:50.638'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:29:50.638')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:29:50.638')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:29:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872191;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872192;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:51.59241' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872193;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000256  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872194;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:53.589461' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872195;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:54.592468' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872195;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:54.592412' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872196;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872197;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:56.592705' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2311  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2311  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:29:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2312  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2312  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001414  Lock_time: 0.001168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872198;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000922  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872198;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:57.592244' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:29:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000243  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872199;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:58.592081' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001005  Lock_time: 0.000768  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872199;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000329  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872200;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:29:59.589498' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000229  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872201;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:00.592452' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000679  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872202;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:01.591978' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872202;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:01.59203' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872203;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:02.589863' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872203;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:02.589701' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872204;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:03.589511' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872204;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:03.589661' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872205;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872205;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:04.592326' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872206;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872206;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:05.593245' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000757  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872207;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2315  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2315  Schema:   QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:30:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2316  Schema:   QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000267  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2316  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872208;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:07.592645' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872209;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:08.592268' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872210;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:09.592445' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000381  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872211;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872211;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:10.592912' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872212;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:11.589391' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872213;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:12.592455' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872214;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:13.589445' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872215;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:14.592646' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872215;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:14.593024' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001363  Lock_time: 0.001186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872216;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872217;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:16.592067' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001022  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872217;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:16.592151' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2319  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2319  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:30:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2320  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2320  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872218;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872219;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:18.592058' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872220;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872220;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:19.591955' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872221;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:20.589446' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872222;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:21.589558' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872223;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:22.590185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001177  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872224;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:30:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872225;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000639  Lock_time: 0.000312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872226;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:25.592572' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000572  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872227;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:26.590792' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2323  Schema:   QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872227;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2323  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872227;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:30:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2324  Schema:   QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872228;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2324  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872228;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000911  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872228;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000746  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872228;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:27.592442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001579  Lock_time: 0.001190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872228;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872229;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000511  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872229;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:28.589573' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872230;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:29.592727' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872231;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872232;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000305  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872233;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:32.59237' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001701  Lock_time: 0.001429  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872234;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:33.592249' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001707  Lock_time: 0.001269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872234;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:33.592433' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001302  Lock_time: 0.001114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872235;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:34.592285' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000354  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872236;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:30:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872237;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:36.591974' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2327  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872237;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2327  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872237;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:30:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2328  Schema:   QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872238;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2328  Schema:   QC_hit: No
# Query_time: 0.000234  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872238;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872238;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001469  Lock_time: 0.001214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872238;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:37.59019' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000605  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872239;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001147  Lock_time: 0.001011  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872239;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872239;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:38.592462' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872240;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:39.592035' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000494  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872241;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:40.589822' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872242;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872242;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:41.589853' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872243;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:42.589494' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000269  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872244;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:43.592468' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872245;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:44.592408' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001249  Lock_time: 0.000940  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872246;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:45.592714' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000761  Lock_time: 0.000422  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872246;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:45.592774' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000367  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872247;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:46.592365' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872247;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:46.592371' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2331  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872247;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2331  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872247;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:30:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2332  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872248;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2332  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872248;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000477  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872248;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:47.592531' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002502  Lock_time: 0.001801  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872248;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:30:48.807'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:30:48.807')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:30:48.807')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:30:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000513  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872249;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:48.592397' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872250;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:49.593113' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001032  Lock_time: 0.000415  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872250;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:30:50.639'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:30:50.639')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:30:50.639')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:30:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872251;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872251;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:50.590905' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872252;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001424  Lock_time: 0.001114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872253;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000709  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872253;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:52.589632' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001315  Lock_time: 0.001089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872254;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000753  Lock_time: 0.000506  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872254;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:53.589913' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000786  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872255;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:54.589945' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000540  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872256;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:55.589438' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000627  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872257;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:56.590261' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872257;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:56.589773' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2335  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872257;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2335  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872257;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:30:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2336  Schema:   QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872258;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2336  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000178  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872258;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000250  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872258;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:57.592399' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:30:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872259;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:58.592368' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872260;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872260;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:30:59.589932' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000060  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872261;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:00.58982' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872262;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:01.589978' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872263;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872263;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:02.590331' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000213  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872264;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:03.592536' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872265;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:04.589944' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000856  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872265;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:31:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872266;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:05.58979' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001182  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872267;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2339  Schema:   QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872267;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2339  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872267;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:31:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2340  Schema:   QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000241  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872268;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2340  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872268;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872268;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:07.592531' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872269;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:08.589724' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872269;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:08.58957' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872270;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:31:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872271;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:10.589703' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872271;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:10.589632' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872272;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:11.592497' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872273;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:12.589633' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872274;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:13.58995' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001237  Lock_time: 0.001021  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872275;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:14.589579' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000989  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872276;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872277;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872277;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:16.593699' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2343  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872277;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2343  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872277;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:31:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2344  Schema:   QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000247  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872278;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2344  Schema:   QC_hit: No
# Query_time: 0.000154  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872278;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872278;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:17.589331' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000594  Lock_time: 0.000364  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872278;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:17.589514' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872279;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:18.589876' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872280;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:19.590011' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872281;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872281;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:20.590178' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872282;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:21.592684' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000541  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872283;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:22.592587' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001447  Lock_time: 0.001279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872284;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000367  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872285;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:24.592736' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000655  Lock_time: 0.000385  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872286;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:25.592168' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000202  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872287;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:26.590026' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2347  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872287;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2347  Schema:   QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872287;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:31:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2348  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872288;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2348  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000121  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872288;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872288;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:27.592342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872289;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:28.589571' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872290;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000517  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872291;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001287  Lock_time: 0.001124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872292;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:31.592036' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000635  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872293;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872293;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:32.589847' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000568  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872294;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:33.592316' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872294;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:33.592138' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872295;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000067  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872296;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:35.592117' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872297;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001521  Lock_time: 0.001258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872297;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:36.590051' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2351  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872297;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2351  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872297;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:31:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2352  Schema:   QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872298;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2352  Schema:   QC_hit: No
# Query_time: 0.000227  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872298;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872298;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:31:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000539  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872299;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:38.589925' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872300;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872301;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:40.592344' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872301;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:40.592284' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001085  Lock_time: 0.000935  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872302;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:41.591938' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000958  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872302;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:41.592007' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872303;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:42.589488' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872303;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872304;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:43.592832' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872305;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872305;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:44.589472' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872306;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:45.589815' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872307;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872307;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:46.592482' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2355  Schema:   QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872307;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2355  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872307;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:31:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2356  Schema:   QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872308;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2356  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872308;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001391  Lock_time: 0.001188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872308;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:47.592028' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000677  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872308;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:47.592121' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001018  Lock_time: 0.000446  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872308;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:31:48.807'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:31:48.807')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:31:48.807')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:31:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001313  Lock_time: 0.001086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872309;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:48.59192' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872310;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872310;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:49.589472' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001683  Lock_time: 0.001326  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872310;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:31:50.639'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:31:50.639')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:31:50.639')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:31:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872311;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872312;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:51.592303' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000467  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872313;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:52.59191' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000958  Lock_time: 0.000785  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872313;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000618  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872314;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:53.592363' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000789  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872315;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:54.592409' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872316;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872316;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872316;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:55.593013' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:31:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872317;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:56.589982' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872317;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2359  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872317;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2359  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000157  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872317;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:31:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2360  Schema:   QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872318;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2360  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872318;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872318;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:57.589705' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001165  Lock_time: 0.000549  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872318;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:31:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001325  Lock_time: 0.001159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872319;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:58.589296' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872319;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872320;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:59.592607' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872320;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:31:59.592718' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872321;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:00.592452' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001115  Lock_time: 0.000872  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872321;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872322;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:01.592234' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000675  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872323;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872323;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872323;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:02.592242' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000409  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872324;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:03.591903' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872325;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872325;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:04.589455' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872326;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:05.592585' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000765  Lock_time: 0.000575  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872327;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872327;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:06.592256' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2363  Schema:   QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000362  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872327;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2363  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872327;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:32:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2364  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872328;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2364  Schema:   QC_hit: No
# Query_time: 0.000118  Lock_time: 0.000075  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872328;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001421  Lock_time: 0.001038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872328;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:07.592306' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001152  Lock_time: 0.000786  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872328;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:07.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872329;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:08.592207' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872330;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:09.59254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872330;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:09.592346' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872331;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872331;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872332;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:11.592651' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872333;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:12.589507' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001098  Lock_time: 0.000423  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872333;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:32:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000773  Lock_time: 0.000539  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872335;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:14.592329' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000706  Lock_time: 0.000513  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872336;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:15.592052' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872337;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:16.589917' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000349  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872337;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:16.589751' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2367  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000104  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872337;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2367  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872337;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:32:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2368  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872338;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2368  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872338;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872338;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872338;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:17.589828' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872339;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:18.589731' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872340;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:19.592312' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000738  Lock_time: 0.000503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872341;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872341;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:20.592641' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872342;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:21.592367' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001618  Lock_time: 0.001415  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872343;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872343;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:22.5925' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872344;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:23.5895' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872345;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:24.592456' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001202  Lock_time: 0.001051  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872346;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872346;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:25.592745' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001108  Lock_time: 0.000899  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872347;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:26.59155' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001059  Lock_time: 0.000799  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872347;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:26.591471' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2371  Schema:   QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872347;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2371  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872347;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:32:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2372  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872348;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2372  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872348;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000669  Lock_time: 0.000462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872348;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001108  Lock_time: 0.000972  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872348;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:27.592307' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872349;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872350;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:29.589555' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872351;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:30.592921' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872352;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872352;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:31.589693' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000429  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872353;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:32.589665' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872354;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:33.593544' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872355;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:34.592028' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001198  Lock_time: 0.001039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872355;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:34.592173' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872356;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872356;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:35.589903' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872357;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2375  Schema:   QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000212  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872357;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2375  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872357;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:32:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2376  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872358;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2376  Schema:   QC_hit: No
# Query_time: 0.000165  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872358;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872358;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872359;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:38.589831' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000418  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872360;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:39.589569' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872361;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872362;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:41.591977' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872362;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:41.592384' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872363;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872363;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:42.589746' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872364;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:43.592836' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001073  Lock_time: 0.000963  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872365;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:44.592014' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872366;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872367;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872367;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2379  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872367;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2379  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872367;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:32:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2380  Schema:   QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872368;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2380  Schema:   QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872368;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000256  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872368;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:47.592206' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000359  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872368;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:32:48.808'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:32:48.808')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:32:48.808')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:32:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872369;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:48.592067' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872370;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:49.592434' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000313  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872370;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:32:50.641'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:32:50.641')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:32:50.641')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:32:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001053  Lock_time: 0.000892  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872371;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:50.592161' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001146  Lock_time: 0.000964  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872371;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001117  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872372;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:51.591923' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000436  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872373;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872373;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:52.590529' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872374;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001171  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872375;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872375;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:54.589792' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872376;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:55.592542' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001338  Lock_time: 0.001087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872377;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:56.592177' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001641  Lock_time: 0.001171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872377;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:56.592278' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2383  Schema:   QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000276  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872377;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2383  Schema:   QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000303  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872377;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:32:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2384  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872378;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2384  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000101  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872378;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001444  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872378;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:57.592286' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001463  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872378;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:57.592411' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:32:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872379;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872379;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:58.592014' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872380;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:59.591914' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872380;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:32:59.591825' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000657  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872381;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000729  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872381;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:00.590877' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001488  Lock_time: 0.001151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872382;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:01.591318' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000799  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872383;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:02.592213' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001352  Lock_time: 0.001077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872384;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:03.592245' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000782  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872385;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872385;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872386;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:05.589574' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872387;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2389  Schema:   QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000180  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872387;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2389  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000189  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872387;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:33:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2390  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872388;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2390  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872388;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001159  Lock_time: 0.000847  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872388;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:07.592185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001203  Lock_time: 0.000998  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872389;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:08.592199' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000426  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872390;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:09.591949' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872391;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:10.590016' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000475  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872392;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:11.589743' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001422  Lock_time: 0.001241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872392;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000844  Lock_time: 0.000607  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872393;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:12.58967' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000674  Lock_time: 0.000357  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872394;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:13.590078' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001333  Lock_time: 0.001030  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872394;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000617  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872395;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:33:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000056  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872396;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:15.592601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872397;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:16.589566' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2393  Schema:   QC_hit: No
# Query_time: 0.001543  Lock_time: 0.001434  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872397;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2393  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872397;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:33:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2394  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872398;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2394  Schema:   QC_hit: No
# Query_time: 0.000174  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872398;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872398;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:17.592885' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872399;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872399;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872399;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:18.5929' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872400;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:19.589559' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872400;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:19.58974' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872401;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:20.592621' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872402;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:21.589726' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872403;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:22.589918' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872404;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:23.589875' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000520  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872404;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:23.589749' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000594  Lock_time: 0.000352  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872405;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:24.589545' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001257  Lock_time: 0.001047  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872405;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872406;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:25.592486' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000641  Lock_time: 0.000399  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872406;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:25.592557' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872407;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872407;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2397  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000149  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872407;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2397  Schema:   QC_hit: No
# Query_time: 0.000136  Lock_time: 0.000089  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872407;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:33:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2398  Schema:   QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872408;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2398  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872408;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000803  Lock_time: 0.000517  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872408;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:27.592669' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872409;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872409;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:28.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872410;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:29.592595' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872410;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:29.592513' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001128  Lock_time: 0.000905  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872411;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001663  Lock_time: 0.001358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872412;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:31.592297' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001547  Lock_time: 0.001037  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872412;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:31.592123' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000565  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872413;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000330  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872413;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:32.592147' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872414;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:33.592172' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001289  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872415;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000731  Lock_time: 0.000499  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872416;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:35.592011' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872417;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001361  Lock_time: 0.001207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872417;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:36.592394' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2401  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872417;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2401  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872417;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:33:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2402  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872418;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2402  Schema:   QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000193  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872418;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001011  Lock_time: 0.000815  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872418;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:37.592594' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001552  Lock_time: 0.001240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872418;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872419;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:38.589596' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872419;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:38.589674' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872420;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:39.592526' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001504  Lock_time: 0.001263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872421;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:40.592412' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000970  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872421;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:40.592293' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872422;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:41.592214' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001410  Lock_time: 0.001168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872422;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:41.592267' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872423;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:42.591939' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872424;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:43.590298' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000701  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872425;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872425;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872425;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:44.592147' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872426;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:45.591864' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000210  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872426;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:45.591892' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872427;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872427;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:46.589416' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2405  Schema:   QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872427;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2405  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872427;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:33:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2406  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872428;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2406  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000138  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872428;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872428;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:47.592355' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002611  Lock_time: 0.001951  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872428;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:33:48.807'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:33:48.807')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:33:48.807')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:33:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872429;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:48.591905' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872429;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:48.592' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872430;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000890  Lock_time: 0.000402  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872430;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:33:50.64'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:33:50.64')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:33:50.64')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:33:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000793  Lock_time: 0.000495  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872432;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:51.592263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001136  Lock_time: 0.000837  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872433;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:52.592149' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001176  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872433;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:52.592211' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872434;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:53.592111' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001568  Lock_time: 0.001304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872434;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:53.592002' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872435;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000668  Lock_time: 0.000440  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872435;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:54.591976' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000470  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872436;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872436;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:55.589495' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872437;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:56.592533' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2409  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872437;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2409  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872437;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:33:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2410  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872438;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2410  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872438;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000748  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872438;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872438;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:57.59214' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000913  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872438;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:57.591911' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:33:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872439;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:58.58983' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000318  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872439;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:58.589641' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872440;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000145  Lock_time: 0.000046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872440;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:33:59.58969' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872441;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:00.592436' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000616  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872442;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872442;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:01.592618' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872443;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:02.589773' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000938  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872444;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:34:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872445;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:04.5935' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872445;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:04.593196' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872446;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001343  Lock_time: 0.001081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872446;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:05.592672' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872447;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:06.589412' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2413  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872447;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2413  Schema:   QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000286  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872447;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:34:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2414  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872448;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2414  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872448;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872448;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:07.592685' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000361  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872449;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:08.589623' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000194  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872450;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:09.592813' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000646  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872451;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872451;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:10.58937' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872452;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:11.592425' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872453;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872454;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:13.592814' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000395  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872455;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:14.592348' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872455;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:14.592431' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872456;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:15.59242' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872457;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001013  Lock_time: 0.000901  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872457;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872457;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:16.592607' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2417  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872457;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2417  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872457;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:34:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2418  Schema:   QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000220  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872458;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2418  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872458;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872458;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:17.592184' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001476  Lock_time: 0.001215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872459;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:18.592547' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001441  Lock_time: 0.001164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872459;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:18.59248' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872460;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872460;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:19.592636' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872461;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:20.592223' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872461;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:20.592172' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001248  Lock_time: 0.001098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872462;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872463;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:22.589525' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000491  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872464;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872465;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001083  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872466;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:25.59238' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001283  Lock_time: 0.001000  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872466;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:25.592414' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000766  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872467;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872467;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872467;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:26.592273' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872467;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:26.594472' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2421  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872467;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2421  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872467;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:34:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2422  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872468;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2422  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872468;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872468;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872469;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872469;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:28.591576' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872470;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:29.592112' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872471;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:30.592304' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872472;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:31.592191' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000658  Lock_time: 0.000323  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872472;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:31.592463' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001219  Lock_time: 0.001036  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872473;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872474;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:33.592106' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872475;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872475;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:34.590038' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872476;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:35.590166' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001260  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872477;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872477;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872477;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:36.591926' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2425  Schema:   QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000348  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872477;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2425  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872477;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:34:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2426  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000221  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872478;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2426  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872478;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001506  Lock_time: 0.001300  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872478;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:37.590248' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872479;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:38.59241' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872480;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:39.589516' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872481;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:40.593082' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872481;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000886  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872482;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872482;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000928  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872482;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:41.592073' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001272  Lock_time: 0.000980  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872483;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:42.589968' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000662  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872484;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872484;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:43.589864' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872485;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:44.589581' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872486;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:45.592581' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000615  Lock_time: 0.000475  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872487;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:46.591983' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2429  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000092  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872487;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2429  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872487;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:34:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2430  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872488;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2430  Schema:   QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872488;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872488;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001983  Lock_time: 0.001333  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872488;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:34:48.808'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:34:48.808')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:34:48.808')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:34:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872489;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:48.592296' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872490;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000425  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872490;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:34:50.641'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:34:50.641')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:34:50.641')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:34:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872491;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:50.589806' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000686  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872491;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:34:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872492;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:51.591747' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872493;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:52.589612' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872493;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:34:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872494;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872494;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:53.592355' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872495;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:54.592156' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000767  Lock_time: 0.000542  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872495;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:54.592036' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872496;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:55.592014' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001251  Lock_time: 0.001106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872496;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:55.59212' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001397  Lock_time: 0.001115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872497;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:56.591927' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2433  Schema:   QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872497;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2433  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872497;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:34:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2434  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872498;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2434  Schema:   QC_hit: No
# Query_time: 0.000190  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872498;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000157  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872498;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:57.589719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:34:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872499;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000282  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872499;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:58.589469' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872500;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:34:59.592141' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000448  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872501;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:00.592107' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872502;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872502;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:01.589657' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000309  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872503;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872504;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:03.589488' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872504;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:03.589664' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872505;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:04.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872506;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:05.592257' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000940  Lock_time: 0.000766  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872507;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000695  Lock_time: 0.000339  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872507;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:06.592367' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2437  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872507;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2437  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872507;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:35:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2438  Schema:   QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872508;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2438  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872508;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000925  Lock_time: 0.000727  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872508;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:07.591946' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000710  Lock_time: 0.000451  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872508;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:07.592075' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000646  Lock_time: 0.000383  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872509;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:08.589645' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872510;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:09.592681' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872511;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:10.5924' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001195  Lock_time: 0.001040  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872512;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001420  Lock_time: 0.001212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872513;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:12.592523' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000337  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872514;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872514;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:13.592704' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872515;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:14.592495' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001025  Lock_time: 0.000866  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872516;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:15.592269' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872516;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:15.592435' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872517;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000922  Lock_time: 0.000718  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872517;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:16.592179' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2441  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872517;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2441  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000118  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872517;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:35:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2442  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872518;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2442  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872518;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000301  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872518;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:17.591827' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001189  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872518;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:17.59183' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872519;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:18.589521' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000606  Lock_time: 0.000455  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872520;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:19.592234' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001150  Lock_time: 0.000984  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872521;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872521;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:20.592277' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000915  Lock_time: 0.000629  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872522;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:21.592148' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000582  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872522;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:21.592142' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872523;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000508  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872524;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:23.592491' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000957  Lock_time: 0.000817  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872525;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001132  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872526;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:25.592337' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001095  Lock_time: 0.000791  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872526;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:25.592568' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872527;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:26.590172' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2445  Schema:   QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872527;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2445  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872527;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:35:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2446  Schema:   QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000215  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872528;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2446  Schema:   QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000171  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872528;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000818  Lock_time: 0.000432  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872528;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:27.590036' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000482  Lock_time: 0.000301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872529;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:28.589979' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000726  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872529;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872530;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:29.589599' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872531;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000805  Lock_time: 0.000275  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872531;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:35:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872532;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000752  Lock_time: 0.000557  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872532;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:31.589643' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872533;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872533;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:32.59252' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000578  Lock_time: 0.000304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872534;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000939  Lock_time: 0.000348  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872535;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:34.589665' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000419  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872536;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872537;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000403  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872537;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2450  Schema:   QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000302  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872537;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2450  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872537;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:35:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2451  Schema:   QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872538;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2451  Schema:   QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872538;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872538;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:37.592794' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872539;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872540;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:39.592185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000855  Lock_time: 0.000569  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872541;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:40.592106' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872541;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:40.592275' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000466  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872542;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:41.592574' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872543;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001191  Lock_time: 0.000864  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872543;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:42.589635' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872544;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872545;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:44.589504' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000744  Lock_time: 0.000463  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872546;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:45.593015' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000309  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872547;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2454  Schema:   QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000281  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872547;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2454  Schema:   QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872547;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:35:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2455  Schema:   QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000284  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872548;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2455  Schema:   QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872548;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872548;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:47.592888' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002408  Lock_time: 0.001797  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872548;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:35:48.808'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:35:48.808')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:35:48.808')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:35:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872549;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:48.59037' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872549;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:48.590482' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000346  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872550;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:49.592485' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001087  Lock_time: 0.000517  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872550;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:35:50.64'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:35:50.64')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:35:50.64')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:35:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000898  Lock_time: 0.000360  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872551;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001024  Lock_time: 0.000839  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872551;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872551;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:50.592622' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000870  Lock_time: 0.000602  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872552;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:51.592393' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001717  Lock_time: 0.001465  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872553;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001294  Lock_time: 0.001048  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872553;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:52.592495' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000273  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872554;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872555;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:54.592132' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872556;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:55.589776' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872556;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:55.589787' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001220  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872557;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:56.589292' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872557;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:56.589377' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2459  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872557;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2459  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872557;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:35:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2460  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872558;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2460  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872558;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000636  Lock_time: 0.000224  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872558;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000284  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872558;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:35:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872559;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:58.592262' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000491  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872560;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:59.592029' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.000825  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872560;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:35:59.591896' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000066  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872561;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872561;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:00.589699' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872562;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:01.589561' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000879  Lock_time: 0.000626  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872563;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:02.592742' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000650  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872564;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:03.589388' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872564;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:03.589409' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872565;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:04.592457' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000253  Lock_time: 0.000057  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872566;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:05.592308' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872566;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:05.592222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872567;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872567;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:06.592539' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2463  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000127  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872567;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2463  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872567;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:36:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2464  Schema:   QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872568;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2464  Schema:   QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000256  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872568;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872568;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:07.590046' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872569;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:08.589607' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000554  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872569;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:08.589638' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872570;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:09.592267' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872571;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:10.592464' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872572;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000625  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872573;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:12.589969' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872573;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:12.589803' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872574;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:13.58962' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000378  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872575;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:14.592485' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000583  Lock_time: 0.000420  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872576;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:15.592214' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872577;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:16.591863' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872577;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:16.591843' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2467  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872577;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2467  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872577;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:36:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2468  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872578;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2468  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872578;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000737  Lock_time: 0.000540  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872578;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:17.589625' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000683  Lock_time: 0.000446  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872578;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:17.589722' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872579;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:18.592798' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000289  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872580;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:19.589348' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872581;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:20.592671' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000103  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872582;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001531  Lock_time: 0.001254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872582;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:21.592185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872583;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:22.592165' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001480  Lock_time: 0.001177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872583;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:22.592278' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872584;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872584;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:23.592183' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000198  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872585;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:24.592009' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872586;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:25.592294' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872586;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:25.592154' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000844  Lock_time: 0.000595  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872587;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:26.592028' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2471  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872587;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2471  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872587;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:36:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2472  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872588;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2472  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872588;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872588;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:27.590057' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872589;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:28.589859' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872590;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:29.593071' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872590;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:29.59435' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872591;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000459  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872592;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:31.592441' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000340  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872592;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:31.592531' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872593;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:32.592548' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872593;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:32.592779' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000530  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872594;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872594;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:33.589483' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872596;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:35.593458' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000453  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872597;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:36.592348' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2475  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000195  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872597;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2475  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872597;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:36:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2476  Schema:   QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000237  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872598;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2476  Schema:   QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000249  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872598;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001091  Lock_time: 0.000918  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872598;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:37.592199' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872599;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001178  Lock_time: 0.001030  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872599;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:38.592657' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872600;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:39.592102' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872601;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:40.592192' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872601;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:40.592353' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000552  Lock_time: 0.000355  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872602;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:41.591923' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872603;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:42.589612' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872604;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:43.589903' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000598  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872605;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:44.589549' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001826  Lock_time: 0.001488  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872605;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872606;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:45.592719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872607;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2480  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000187  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872607;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2480  Schema:   QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000214  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872607;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:36:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2481  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872608;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2481  Schema:   QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000353  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872608;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872608;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:47.589843' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002229  Lock_time: 0.001582  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872608;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:36:48.809'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:36:48.809')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:36:48.809')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:36:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872609;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:48.592709' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872610;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:49.592451' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872610;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:49.592435' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000952  Lock_time: 0.000414  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872610;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:36:50.641'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:36:50.641')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:36:50.641')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:36:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000311  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872611;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:50.592306' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872611;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:50.592943' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000633  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872612;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872612;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:51.592294' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872613;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:52.592017' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001058  Lock_time: 0.000942  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872613;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:52.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872614;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001415  Lock_time: 0.001196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872614;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:53.592279' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001381  Lock_time: 0.001139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872615;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:54.592018' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001271  Lock_time: 0.000956  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872615;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:54.592163' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872616;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001220  Lock_time: 0.000977  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872616;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:55.592264' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001048  Lock_time: 0.000832  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872617;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:56.592371' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2484  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872617;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2484  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872617;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:36:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2485  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000111  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872618;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2485  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872618;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872618;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:57.592436' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:36:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872619;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:58.592585' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872619;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:58.592451' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872620;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872620;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:36:59.589417' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872621;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:00.592283' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000083  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872622;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:01.591948' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872623;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:02.59243' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000412  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872623;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:02.592704' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002043  Lock_time: 0.001312  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872624;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:03.58967' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002092  Lock_time: 0.001359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872624;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:03.589476' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872625;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000910  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872625;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:37:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000525  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872626;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872626;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:05.589662' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:07
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2488  Schema:   QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000264  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872627;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2488  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872627;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:37:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2489  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872628;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2489  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872628;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001114  Lock_time: 0.000915  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872628;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872629;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:08.592837' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000320  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872630;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000861  Lock_time: 0.000456  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872630;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:37:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872631;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:10.58965' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872632;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:11.592676' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872633;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872633;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:12.592996' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872634;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:13.58951' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872634;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:13.58948' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000446  Lock_time: 0.000255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872635;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872636;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:15.590214' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872637;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2492  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872637;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2492  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872637;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:37:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2493  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872638;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2493  Schema:   QC_hit: No
# Query_time: 0.000127  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872638;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872638;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872638;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:17.591986' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872638;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:17.592562' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001160  Lock_time: 0.001022  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872639;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001271  Lock_time: 0.001077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872640;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:19.592225' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001289  Lock_time: 0.001125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872641;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872642;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:21.592442' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001149  Lock_time: 0.001046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872642;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001354  Lock_time: 0.001152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872643;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:22.592973' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872644;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:23.592424' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872644;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:23.592271' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000329  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872645;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:24.591912' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872645;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:24.592056' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872646;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000314  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872646;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:25.589692' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872647;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2496  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872647;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2496  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872647;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:37:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2497  Schema:   QC_hit: No
# Query_time: 0.000206  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872648;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2497  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872648;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872648;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:27.592742' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872649;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:28.589424' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872650;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:29.593022' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000440  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872651;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:30.58956' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000999  Lock_time: 0.000473  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872651;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:37:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872652;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:31.592791' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872653;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000198  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872654;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:33.592687' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001116  Lock_time: 0.000947  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872655;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:34.592578' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001055  Lock_time: 0.000885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872655;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:34.592477' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000964  Lock_time: 0.000784  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872656;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:35.592476' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001150  Lock_time: 0.000824  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872656;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:35.592603' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872657;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:36.592235' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2502  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872657;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2502  Schema:   QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000321  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872657;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:37:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2503  Schema:   QC_hit: No
# Query_time: 0.000204  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872658;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2503  Schema:   QC_hit: No
# Query_time: 0.000178  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872658;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872658;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:37.592231' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000597  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872658;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:37.592011' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000240  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872659;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:38.592221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001039  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872660;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:39.591967' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872661;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:40.589717' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872662;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:41.589612' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872663;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:42.592738' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000306  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872663;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:42.592406' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000921  Lock_time: 0.000304  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872664;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872664;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000484  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872664;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:43.592471' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.001078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872665;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:44.592382' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001440  Lock_time: 0.001242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872666;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:45.592348' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001498  Lock_time: 0.001301  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872666;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:45.592334' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872667;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:46.592093' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2506  Schema:   QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000277  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872667;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2506  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872667;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:37:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2507  Schema:   QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000290  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872668;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2507  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872668;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000579  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872668;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:47.592298' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002687  Lock_time: 0.001802  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872668;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:37:48.809'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:37:48.809')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:37:48.809')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:37:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000383  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872669;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:48.59216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872670;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:49.592234' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000395  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872670;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:37:50.64'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:37:50.64')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:37:50.64')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:37:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872671;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872671;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:50.589894' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872672;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872672;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:51.592574' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001014  Lock_time: 0.000834  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872673;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872673;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:52.59222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000640  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872674;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:53.592189' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000289  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872675;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000391  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872676;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:37:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872677;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:56.59235' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2510  Schema:   QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872677;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2510  Schema:   QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000186  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872677;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:37:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2511  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872678;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2511  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872678;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001126  Lock_time: 0.000512  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872678;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001635  Lock_time: 0.001271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872678;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:57.590274' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872680;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000589  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872680;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:37:59.590003' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000519  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872681;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:00.592532' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872681;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:00.591574' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000393  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872682;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:01.592029' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872683;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:02.589586' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872683;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:02.589509' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000538  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872684;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:03.592401' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000153  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872685;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:04.592493' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872686;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:05.592596' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000507  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872687;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:06.589519' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872687;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:06.589502' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2514  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872687;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2514  Schema:   QC_hit: No
# Query_time: 0.000223  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872687;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:38:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2515  Schema:   QC_hit: No
# Query_time: 0.000389  Lock_time: 0.000269  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872688;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2515  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872688;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000574  Lock_time: 0.000290  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872688;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:07.592878' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872689;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:08.58945' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000233  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872689;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:08.589277' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872690;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:09.592417' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872691;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:10.592518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000567  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872692;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:11.592878' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000661  Lock_time: 0.000358  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872692;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:11.592774' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872693;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872693;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:12.589776' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872694;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:13.592719' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872695;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:14.592428' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872696;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872696;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:15.592848' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000498  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872697;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:16.589313' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2518  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872697;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2518  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872697;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:38:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2519  Schema:   QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000227  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872698;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2519  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872698;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000643  Lock_time: 0.000341  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872698;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:17.592188' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872699;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872699;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:18.592185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872700;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:19.592337' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872700;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:19.592289' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872701;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:20.592429' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872702;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:21.592285' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001239  Lock_time: 0.001020  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872703;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:22.592194' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001369  Lock_time: 0.001064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872703;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:22.592281' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000819  Lock_time: 0.000498  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872704;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001307  Lock_time: 0.001121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872704;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:23.592138' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000697  Lock_time: 0.000439  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872705;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:24.591888' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001235  Lock_time: 0.001061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872705;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:24.592106' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001415  Lock_time: 0.000706  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872706;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000237  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872706;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:25.590201' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000544  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872707;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:26.592167' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000607  Lock_time: 0.000286  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872707;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:26.592363' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2522  Schema:   QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000233  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872707;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2522  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872707;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:38:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2523  Schema:   QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000242  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872708;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2523  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872708;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000069  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872708;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000687  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872709;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:28.592376' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872710;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:29.592503' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872711;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872712;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872712;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:31.589629' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000573  Lock_time: 0.000270  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872713;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:38:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000343  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872714;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:33.592758' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001741  Lock_time: 0.001503  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872715;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001163  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872716;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000680  Lock_time: 0.000331  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872716;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:35.590021' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872717;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:36.589522' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2526  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872717;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2526  Schema:   QC_hit: No
# Query_time: 0.000236  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872717;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:38:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2527  Schema:   QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000253  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872718;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2527  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872718;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872718;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:37.592831' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000503  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872719;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:38.589406' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872719;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:38.589446' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872720;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:39.592097' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872720;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:39.592241' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872721;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:40.591959' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001169  Lock_time: 0.000835  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872721;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000428  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872722;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:41.589499' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000493  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872722;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:41.589524' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000535  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872723;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000281  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872724;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:43.59257' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872724;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:43.592745' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000411  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872725;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:44.589515' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000355  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872726;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872726;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:45.589464' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872727;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:46.592297' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2530  Schema:   QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000162  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872727;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2530  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872727;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:38:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2531  Schema:   QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872728;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2531  Schema:   QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872728;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000892  Lock_time: 0.000689  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872728;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872728;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:47.592569' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000941  Lock_time: 0.000491  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872728;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:38:48.81'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:38:48.81')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:38:48.81')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:38:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001214  Lock_time: 0.000898  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872729;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:48.592363' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872730;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001226  Lock_time: 0.000996  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872730;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:49.592388' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000392  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872730;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:38:50.641'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:38:50.641')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:38:50.641')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:38:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872731;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:50.592075' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000992  Lock_time: 0.000522  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872732;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:38:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001259  Lock_time: 0.001113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872733;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872734;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:53.592429' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872735;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000796  Lock_time: 0.000645  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872735;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:54.591929' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872735;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:54.592191' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000652  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872736;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872736;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:55.589663' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:38:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872737;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872737;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:56.591142' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2534  Schema:   QC_hit: No
# Query_time: 0.000185  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872737;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2534  Schema:   QC_hit: No
# Query_time: 0.000195  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872737;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220310  0:38:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2535  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000112  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872738;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2535  Schema:   QC_hit: No
# Query_time: 0.000240  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872738;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872738;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:38:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872739;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:58.58986' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000183  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872740;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:38:59.592956' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872741;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872741;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:00.589552' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872743;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:02.592314' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000238  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872744;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872745;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:04.592374' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000064  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872745;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:04.592473' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872746;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872746;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000295  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872746;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:05.592469' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000601  Lock_time: 0.000459  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872747;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2538  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872747;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2538  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872747;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:39:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2539  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872748;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2539  Schema:   QC_hit: No
# Query_time: 0.000120  Lock_time: 0.000073  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872748;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872748;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:07.592596' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000343  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872748;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:07.592608' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872749;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:08.59255' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872749;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872750;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:09.592302' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000452  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872751;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872751;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:10.5926' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000287  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872752;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:11.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872753;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:12.589463' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872753;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:12.58958' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872754;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872754;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:13.592359' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000995  Lock_time: 0.000789  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872755;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:14.592182' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001040  Lock_time: 0.000828  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872755;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:14.592052' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872756;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872757;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:16.589578' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2542  Schema:   QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000120  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872757;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2542  Schema:   QC_hit: No
# Query_time: 0.000196  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872757;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:39:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2543  Schema:   QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000168  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872758;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2543  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872758;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000439  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872758;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:17.592445' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001174  Lock_time: 0.001039  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872759;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000316  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872760;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:19.589625' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872760;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:19.589702' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872761;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:20.59281' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872762;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000390  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872762;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:21.589538' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872763;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:22.592426' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000968  Lock_time: 0.000555  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872764;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000487  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872764;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:23.592699' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000676  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872765;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001016  Lock_time: 0.000869  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872766;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:25.592221' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872767;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:26.59187' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000373  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872767;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:26.592021' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2546  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872767;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2546  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000102  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872767;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:39:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2547  Schema:   QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000115  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872768;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2547  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872768;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872768;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:27.589722' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000244  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872768;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:27.589889' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872769;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:28.589779' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872770;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:29.592353' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872771;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872771;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:30.592358' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001368  Lock_time: 0.001109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872772;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:31.592213' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000546  Lock_time: 0.000326  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872773;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:32.592381' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001385  Lock_time: 0.001185  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872774;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:33.592245' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001486  Lock_time: 0.001205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872774;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:33.592256' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872775;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872776;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:35.592185' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872777;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:36.592488' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872777;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:36.592428' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2550  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872777;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2550  Schema:   QC_hit: No
# Query_time: 0.000183  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872777;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:39:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2551  Schema:   QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872778;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2551  Schema:   QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000202  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872778;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000887  Lock_time: 0.000285  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872778;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002384  Lock_time: 0.002235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872778;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000794  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872779;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:38.59279' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872780;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:39.58943' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000834  Lock_time: 0.000359  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872780;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:39:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000367  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872781;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:40.589796' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001131  Lock_time: 0.000195  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872782;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:41.592261' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001006  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872782;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:41.592631' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001450  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872783;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000086  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872783;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872784;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:43.592114' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872784;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:43.592043' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872785;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:44.589509' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000073  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872786;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:45.592451' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000662  Lock_time: 0.000508  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872787;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872787;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:46.591955' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2554  Schema:   QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000328  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872787;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2554  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000172  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872787;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:39:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2555  Schema:   QC_hit: No
# Query_time: 0.000163  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872788;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2555  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000082  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872788;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000754  Lock_time: 0.000529  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872788;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:47.589907' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002564  Lock_time: 0.001696  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872788;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:39:48.81'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:39:48.81')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:39:48.81')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:39:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000611  Lock_time: 0.000481  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872789;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:48.589829' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000076  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872790;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:49.589475' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872790;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:49.589454' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000934  Lock_time: 0.000442  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872790;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:39:50.642'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:39:50.642')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:39:50.642')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:39:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872791;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:50.592676' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872791;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:50.59255' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000979  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872792;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000362  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872792;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:51.592477' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001284  Lock_time: 0.001104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872793;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:52.59232' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001236  Lock_time: 0.001046  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872793;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:52.5923' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000854  Lock_time: 0.000624  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872794;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001131  Lock_time: 0.000956  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872794;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:53.592449' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000299  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872795;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:54.592544' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000804  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872795;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:54.592429' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872796;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:55.592481' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001441  Lock_time: 0.001321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872796;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:55.592378' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872797;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000344  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872797;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:56.58974' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2558  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000173  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872797;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2558  Schema:   QC_hit: No
# Query_time: 0.000201  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872797;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:39:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2559  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872798;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2559  Schema:   QC_hit: No
# Query_time: 0.000161  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872798;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000090  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872798;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:57.592444' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:39:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000352  Lock_time: 0.000209  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872799;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000445  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872799;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:39:58.592573' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000549  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872800;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:40:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000324  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872801;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:00.592755' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872802;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:01.589601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000432  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872803;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:02.593372' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872804;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872804;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:03.59239' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000486  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872805;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:04.592078' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000564  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872805;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:04.592145' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000673  Lock_time: 0.000427  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872806;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000258  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872807;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2562  Schema:   QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000166  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872807;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2562  Schema:   QC_hit: No
# Query_time: 0.000221  Lock_time: 0.000145  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872807;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:40:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2563  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872808;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2563  Schema:   QC_hit: No
# Query_time: 0.000207  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872808;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872808;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:07.593209' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000502  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872809;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000089  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872809;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:08.592431' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000685  Lock_time: 0.000536  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872810;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:09.592065' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000645  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872810;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:09.591991' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872811;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:10.589748' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872812;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:11.589762' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001780  Lock_time: 0.001412  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872813;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:40:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000471  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872814;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001068  Lock_time: 0.000887  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872815;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872816;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:15.589679' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872817;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:16.592645' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2566  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872817;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2566  Schema:   QC_hit: No
# Query_time: 0.000184  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872817;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:40:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2567  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872818;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2567  Schema:   QC_hit: No
# Query_time: 0.000278  Lock_time: 0.000179  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872818;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872818;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:17.592862' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000230  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872819;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:18.592712' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872820;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:19.589496' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872820;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:19.589459' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872821;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:20.592881' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872822;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000476  Lock_time: 0.000250  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872822;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:21.589632' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872823;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:22.592435' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000072  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872824;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:23.59003' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000084  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872825;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:24.589959' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872826;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:25.589675' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000435  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872827;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:26.590511' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2570  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000151  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872827;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2570  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000116  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872827;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:40:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2571  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872828;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2571  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872828;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872828;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872828;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:27.592316' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872829;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872829;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:28.592389' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000497  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872830;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:29.592636' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872830;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:29.593017' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001782  Lock_time: 0.001486  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872831;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872831;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:30.591612' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000588  Lock_time: 0.000355  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872832;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:31.592195' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872833;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001352  Lock_time: 0.001131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872833;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:32.59238' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000547  Lock_time: 0.000355  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872834;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000346  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872835;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:34.591164' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000437  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872835;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:34.591129' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872836;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000672  Lock_time: 0.000321  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872836;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:35.592599' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001082  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872837;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000481  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872837;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:36.59274' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872837;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:36.59291' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2574  Schema:   QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000159  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872837;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2574  Schema:   QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000266  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872837;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:40:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2575  Schema:   QC_hit: No
# Query_time: 0.000264  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872838;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2575  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872838;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000824  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872838;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872838;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:37.589734' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872839;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872840;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000961  Lock_time: 0.000797  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872841;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:40.592312' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001101  Lock_time: 0.000861  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872841;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:40.592429' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872842;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000825  Lock_time: 0.000542  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872842;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:41.592025' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872843;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:42.592481' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000667  Lock_time: 0.000245  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872843;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:42.592352' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000993  Lock_time: 0.000854  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872844;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872844;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:43.592248' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872845;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872845;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:44.589893' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000333  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872846;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:45.589897' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872847;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000808  Lock_time: 0.000662  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872847;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:46.59296' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2578  Schema:   QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872847;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2578  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872847;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:40:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2579  Schema:   QC_hit: No
# Query_time: 0.000169  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872848;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2579  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872848;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000307  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872848;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:47.589613' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002174  Lock_time: 0.001535  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872848;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:40:48.812'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:40:48.812')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:40:48.812')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:40:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000576  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872849;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:48.592522' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000526  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872849;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:48.592897' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000082  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872850;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000749  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872850;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000776  Lock_time: 0.000378  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872850;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:40:50.644'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:40:50.644')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:40:50.644')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:40:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000463  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872851;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:50.590352' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872852;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:51.592192' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000434  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872852;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:51.59234' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001088  Lock_time: 0.000469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872853;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872853;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:52.59264' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872854;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:53.589482' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000283  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872855;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:54.592757' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000585  Lock_time: 0.000398  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872856;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:40:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000299  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872857;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:56.592669' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2582  Schema:   QC_hit: No
# Query_time: 0.000180  Lock_time: 0.000109  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872857;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2582  Schema:   QC_hit: No
# Query_time: 0.000129  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872857;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:40:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2583  Schema:   QC_hit: No
# Query_time: 0.000251  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872858;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2583  Schema:   QC_hit: No
# Query_time: 0.000210  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872858;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000418  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872858;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:57.589479' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001634  Lock_time: 0.001291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872860;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:40:59.592549' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000740  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872861;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000764  Lock_time: 0.000578  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872861;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001264  Lock_time: 0.001092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872861;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:00.592408' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000393  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872862;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000365  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872862;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:01.592455' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872863;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:02.592503' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000647  Lock_time: 0.000266  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872863;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:02.592779' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000687  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872864;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872864;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001288  Lock_time: 0.001044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872864;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:03.591779' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000396  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872865;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:04.589516' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000212  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872865;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:04.589619' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872866;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872866;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:05.589732' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872867;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:06.592761' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872867;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:06.592702' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2586  Schema:   QC_hit: No
# Query_time: 0.000214  Lock_time: 0.000142  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872867;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2586  Schema:   QC_hit: No
# Query_time: 0.000270  Lock_time: 0.000191  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872867;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:41:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2587  Schema:   QC_hit: No
# Query_time: 0.000176  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872868;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2587  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000147  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872868;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872868;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001144  Lock_time: 0.000981  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872868;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000633  Lock_time: 0.000371  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872868;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:07.592408' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000997  Lock_time: 0.000819  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872869;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:08.592548' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000836  Lock_time: 0.000601  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872869;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:08.59256' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000422  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872870;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:09.592443' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872870;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:09.59231' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872871;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:10.592543' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000562  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872872;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000421  Lock_time: 0.000132  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872873;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:12.592355' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872873;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:12.592581' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000896  Lock_time: 0.000276  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872874;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000451  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872874;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:13.592838' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872875;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:14.589775' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000619  Lock_time: 0.000466  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872876;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000644  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872876;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:15.590089' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872877;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:16.58996' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2590  Schema:   QC_hit: No
# Query_time: 0.000252  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872877;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2590  Schema:   QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872877;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:41:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2591  Schema:   QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872878;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2591  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872878;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000480  Lock_time: 0.000211  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872878;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:17.589951' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000182  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872879;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000189  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872879;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:18.592733' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001078  Lock_time: 0.000871  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872880;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:19.592474' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000931  Lock_time: 0.000766  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872880;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:19.59258' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000620  Lock_time: 0.000413  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872881;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000604  Lock_time: 0.000424  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872881;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:20.592345' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872882;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:21.592263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000837  Lock_time: 0.000631  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872883;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872883;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:22.592406' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000689  Lock_time: 0.000514  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872884;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000790  Lock_time: 0.000605  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872885;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:24.592048' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872886;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:25.59209' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872887;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:26.591706' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2594  Schema:   QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000169  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872887;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2594  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872887;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:41:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2595  Schema:   QC_hit: No
# Query_time: 0.000265  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872888;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2595  Schema:   QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872888;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000361  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872888;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000181  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872888;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:27.589342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000288  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872889;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:28.592377' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000425  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872890;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000941  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872891;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:30.591834' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001133  Lock_time: 0.000885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872891;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:30.591849' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000239  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872892;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:31.589701' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000473  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872893;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:32.592513' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000146  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872894;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:33.592564' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872895;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:34.589685' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872896;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:35.589721' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000696  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872897;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872897;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:36.592637' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2598  Schema:   QC_hit: No
# Query_time: 0.000172  Lock_time: 0.000095  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872897;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2598  Schema:   QC_hit: No
# Query_time: 0.000139  Lock_time: 0.000091  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872897;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:41:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2599  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000146  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872898;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2599  Schema:   QC_hit: No
# Query_time: 0.000192  Lock_time: 0.000135  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872898;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000469  Lock_time: 0.000277  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872898;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:37.592156' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001466  Lock_time: 0.001248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872899;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000844  Lock_time: 0.000618  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872899;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:38.592019' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001273  Lock_time: 0.001087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872900;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:39.591966' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000937  Lock_time: 0.000546  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872901;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000297  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872901;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:40.589739' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872902;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:41.592949' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872903;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000518  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872903;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:42.589484' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000419  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872904;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:43.592778' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001225  Lock_time: 0.000959  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872905;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:44.592441' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000815  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872905;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:44.592558' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001394  Lock_time: 0.001155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872906;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:45.592541' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001541  Lock_time: 0.001258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872906;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:45.592667' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000091  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872907;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:46.592569' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2602  Schema:   QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000231  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872907;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2602  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872907;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:41:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2603  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872908;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2603  Schema:   QC_hit: No
# Query_time: 0.000209  Lock_time: 0.000136  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872908;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872908;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:47.592481' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872908;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:47.592386' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001195  Lock_time: 0.000529  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872908;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:41:48.811'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:41:48.811')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:41:48.811')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:41:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000560  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872909;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000220  Lock_time: 0.000127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872909;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872909;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:48.592427' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000357  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872910;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:49.592161' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872910;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:41:50.642'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:41:50.642')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:41:50.642')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:41:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001440  Lock_time: 0.001253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872911;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000104  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872912;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:51.592198' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000806  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872913;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:52.592385' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001147  Lock_time: 0.000738  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872913;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:52.592324' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000339  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872914;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872914;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:53.59217' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872915;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:54.59204' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872916;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000071  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872917;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2606  Schema:   QC_hit: No
# Query_time: 0.000173  Lock_time: 0.000107  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872917;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2606  Schema:   QC_hit: No
# Query_time: 0.000123  Lock_time: 0.000081  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872917;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:41:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2607  Schema:   QC_hit: No
# Query_time: 0.000232  Lock_time: 0.000131  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872918;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2607  Schema:   QC_hit: No
# Query_time: 0.000219  Lock_time: 0.000126  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872918;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872918;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:57.592057' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000116  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872918;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:57.592252' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:41:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000331  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872919;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:58.592013' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000055  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872919;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:41:58.592508' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000634  Lock_time: 0.000159  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872920;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:42:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000167  Lock_time: 0.000059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872921;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:00.592504' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872922;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:01.592413' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872922;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:01.59257' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000677  Lock_time: 0.000469  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872923;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:02.592416' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001007  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872923;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872924;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000404  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872925;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:04.592387' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000328  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872925;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:04.59222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872926;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:05.592525' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000586  Lock_time: 0.000442  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872926;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:05.59248' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000659  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872927;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000878  Lock_time: 0.000735  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872927;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000233  Lock_time: 0.000075  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872927;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:06.592257' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2611  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872927;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2611  Schema:   QC_hit: No
# Query_time: 0.000164  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872927;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:42:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2612  Schema:   QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000239  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872928;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2612  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000211  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872928;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000063  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872928;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:07.592092' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000424  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872929;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:08.592652' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001189  Lock_time: 0.000842  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872930;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:09.592907' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000290  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872931;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:10.589577' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872931;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:10.58971' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872932;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:11.59279' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872933;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:12.592542' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000320  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872933;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:12.59251' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000960  Lock_time: 0.000234  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872934;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:13.592684' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872934;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:13.592717' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000914  Lock_time: 0.000194  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872935;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000572  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872935;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001273  Lock_time: 0.000920  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872935;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:14.592314' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000403  Lock_time: 0.000257  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872936;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000277  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872936;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:15.589531' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872937;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:16.59218' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000135  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872937;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:16.592302' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2615  Schema:   QC_hit: No
# Query_time: 0.000387  Lock_time: 0.000303  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872937;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2615  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000181  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872937;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:42:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2616  Schema:   QC_hit: No
# Query_time: 0.000141  Lock_time: 0.000086  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872938;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2616  Schema:   QC_hit: No
# Query_time: 0.000112  Lock_time: 0.000074  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872938;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001074  Lock_time: 0.000288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872938;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000971  Lock_time: 0.000830  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872938;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:17.592' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000678  Lock_time: 0.000442  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872938;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:17.591973' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000402  Lock_time: 0.000214  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872939;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000268  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872939;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:18.589876' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000310  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872940;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:19.589571' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872941;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:20.592688' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001332  Lock_time: 0.001013  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872942;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000557  Lock_time: 0.000192  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872943;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:42:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000246  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872944;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:23.592534' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872944;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:23.592377' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872945;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000372  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872945;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:24.592087' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001075  Lock_time: 0.000927  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872946;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000524  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872946;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:25.59203' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872947;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:26.589591' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2619  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872947;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2619  Schema:   QC_hit: No
# Query_time: 0.000121  Lock_time: 0.000077  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872947;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:42:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2620  Schema:   QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872948;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2620  Schema:   QC_hit: No
# Query_time: 0.000177  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872948;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000313  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872948;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:27.594891' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000337  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872949;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000594  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872949;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:42:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872950;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:29.592642' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002177  Lock_time: 0.001992  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872951;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872952;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:42:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000218  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872953;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872954;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:33.592674' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000510  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872955;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:34.592401' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001139  Lock_time: 0.000949  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872955;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872956;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:35.592417' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872957;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2623  Schema:   QC_hit: No
# Query_time: 0.000242  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872957;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2623  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000185  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872957;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:42:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2624  Schema:   QC_hit: No
# Query_time: 0.000354  Lock_time: 0.000240  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872958;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2624  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872958;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000312  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872958;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000388  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872958;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:37.59251' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000241  Lock_time: 0.000081  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872959;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:38.59193' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872960;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:39.589812' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872961;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:40.592714' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872962;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:41.592372' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001452  Lock_time: 0.001158  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872963;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:42.592171' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001311  Lock_time: 0.000926  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872963;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:42.592357' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000584  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872964;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872964;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872964;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:43.592192' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000368  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872965;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:44.591882' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000105  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872966;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872966;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:45.589903' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872967;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:46.589806' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2627  Schema:   QC_hit: No
# Query_time: 0.000226  Lock_time: 0.000119  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872967;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2627  Schema:   QC_hit: No
# Query_time: 0.000162  Lock_time: 0.000096  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872967;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:42:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2628  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000246  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872968;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2628  Schema:   QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000218  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872968;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000382  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872968;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:47.59259' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001365  Lock_time: 0.000551  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872968;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:42:48.812'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:42:48.812')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:42:48.812')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:42:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872969;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:48.592222' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001676  Lock_time: 0.001366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872970;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:49.592001' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001697  Lock_time: 0.001377  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872970;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:49.591967' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001103  Lock_time: 0.000665  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646872970;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:42:50.645'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:42:50.645')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:42:50.645')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:42:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000581  Lock_time: 0.000336  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646872971;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:50.589511' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000786  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872971;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:42:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000276  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872972;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:51.592951' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000305  Lock_time: 0.000155  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872973;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001156  Lock_time: 0.000962  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872975;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:54.592333' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872976;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:55.592035' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872977;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2631  Schema:   QC_hit: No
# Query_time: 0.000146  Lock_time: 0.000079  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872977;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2631  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000071  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872977;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:42:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2632  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000194  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872978;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2632  Schema:   QC_hit: No
# Query_time: 0.000247  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872978;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000533  Lock_time: 0.000236  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872978;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:57.592467' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:42:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000376  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872979;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872979;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:42:58.592393' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000558  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872980;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:43:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000131  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872981;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:00.589825' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000556  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872982;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:01.592628' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000694  Lock_time: 0.000188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872983;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:43:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000397  Lock_time: 0.000172  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872984;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:03.589478' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872985;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:04.592263' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000693  Lock_time: 0.000264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872986;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:05.592055' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872987;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000407  Lock_time: 0.000204  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872987;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:06.590204' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2635  Schema:   QC_hit: No
# Query_time: 0.000349  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872987;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2635  Schema:   QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000222  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872987;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:43:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2636  Schema:   QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000245  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872988;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2636  Schema:   QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000226  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872988;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000294  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872988;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:07.589518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000593  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872989;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872990;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:09.589648' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000244  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872991;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001167  Lock_time: 0.000653  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872992;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:43:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000495  Lock_time: 0.000241  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872993;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:12.592711' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872993;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:12.592612' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872994;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:13.592756' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001387  Lock_time: 0.001099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872995;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:14.592287' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000467  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872996;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001507  Lock_time: 0.001255  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872996;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:15.592565' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872997;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2639  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000163  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872997;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2639  Schema:   QC_hit: No
# Query_time: 0.000229  Lock_time: 0.000154  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872997;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:43:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2640  Schema:   QC_hit: No
# Query_time: 0.000171  Lock_time: 0.000085  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646872998;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2640  Schema:   QC_hit: No
# Query_time: 0.000126  Lock_time: 0.000078  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646872998;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872998;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:17.590202' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872999;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646872999;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:43:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000142  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873000;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:19.592641' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000310  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873001;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000215  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873001;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:20.589518' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000728  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873002;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:21.592443' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000570  Lock_time: 0.000333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873003;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:22.592568' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000376  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873003;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:22.592334' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000221  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873004;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873005;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:24.5928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873006;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000603  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873006;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:43:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000732  Lock_time: 0.000495  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873007;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:26.589616' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873007;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:26.59' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2643  Schema:   QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873007;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2643  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000132  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873007;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:43:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2644  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873008;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2644  Schema:   QC_hit: No
# Query_time: 0.000266  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873008;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000431  Lock_time: 0.000216  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873008;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:27.591527' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000590  Lock_time: 0.000268  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873009;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:28.592202' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000613  Lock_time: 0.000389  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873010;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:29.592206' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000151  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873011;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:30.59223' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000599  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873012;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:31.592478' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001019  Lock_time: 0.000697  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873013;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:32.592426' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000297  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873014;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:33.592613' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873014;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:33.592888' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000860  Lock_time: 0.000369  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873015;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000965  Lock_time: 0.000747  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873015;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:34.592641' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001333  Lock_time: 0.001038  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873015;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:34.592293' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001490  Lock_time: 0.001262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873016;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:35.592599' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.002338  Lock_time: 0.002119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873016;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000366  Lock_time: 0.000178  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873017;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000400  Lock_time: 0.000193  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873017;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:36.590675' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2647  Schema:   QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000196  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873017;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2647  Schema:   QC_hit: No
# Query_time: 0.000294  Lock_time: 0.000199  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873017;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:43:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2648  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000197  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873018;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2648  Schema:   QC_hit: No
# Query_time: 0.000217  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873018;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873018;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000559  Lock_time: 0.000267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873018;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:37.590666' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000338  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873019;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000750  Lock_time: 0.000350  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873019;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:43:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000332  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873020;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:39.592067' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000712  Lock_time: 0.000511  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873021;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001477  Lock_time: 0.001109  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873021;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:40.590841' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000098  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873022;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:41.589977' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000787  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873023;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873023;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:42.589748' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000874  Lock_time: 0.000676  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873024;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000140  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873024;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:43.592156' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873025;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:44.592197' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000692  Lock_time: 0.000460  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873026;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000453  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873026;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:45.592187' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000413  Lock_time: 0.000251  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873027;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:46.592231' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2651  Schema:   QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873027;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2651  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873027;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:43:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2652  Schema:   QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873028;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2652  Schema:   QC_hit: No
# Query_time: 0.000327  Lock_time: 0.000198  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873028;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000449  Lock_time: 0.000129  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873028;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:47.592222' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.001079  Lock_time: 0.000591  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873028;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:43:48.812'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:43:48.812')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:43:48.812')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:43:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000296  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873029;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:48.592424' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000096  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873030;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:49.592947' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000148  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873030;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:49.592421' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000888  Lock_time: 0.000361  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873030;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:43:50.642'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:43:50.642')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:43:50.642')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:43:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000868  Lock_time: 0.000719  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873031;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:50.589417' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000762  Lock_time: 0.000516  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873031;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000718  Lock_time: 0.000325  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873032;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:51.590138' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000572  Lock_time: 0.000254  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873033;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000347  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873033;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:52.589818' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000260  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873034;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:53.59229' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000217  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873034;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:53.591945' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001033  Lock_time: 0.000815  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873035;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000769  Lock_time: 0.000507  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873035;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:54.591991' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873036;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000474  Lock_time: 0.000200  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873036;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:55.589761' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000448  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873037;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:56.590128' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2655  Schema:   QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873037;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2655  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000122  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873037;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:43:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2656  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873038;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2656  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000130  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873038;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001050  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873038;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001497  Lock_time: 0.001220  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873038;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:57.589386' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:43:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000358  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873039;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:43:58.592213' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000523  Lock_time: 0.000077  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873040;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:44:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000379  Lock_time: 0.000118  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873041;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001140  Lock_time: 0.000954  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873042;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873042;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:01.5924' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001335  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873043;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000435  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873043;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:02.592346' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001678  Lock_time: 0.001462  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873044;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:03.592241' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001291  Lock_time: 0.001044  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873044;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:03.592454' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001286  Lock_time: 0.001123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873045;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:04.592393' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001313  Lock_time: 0.001031  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873045;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:04.592496' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001668  Lock_time: 0.001288  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873046;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:05.592512' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001687  Lock_time: 0.001267  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873046;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:05.592472' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000501  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873047;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000388  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873047;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000648  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873047;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:06.592191' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2659  Schema:   QC_hit: No
# Query_time: 0.000398  Lock_time: 0.000207  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873047;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2659  Schema:   QC_hit: No
# Query_time: 0.000130  Lock_time: 0.000080  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873047;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:44:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2660  Schema:   QC_hit: No
# Query_time: 0.000291  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873048;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2660  Schema:   QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000248  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873048;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873048;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000457  Lock_time: 0.000180  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873049;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:08.592187' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873050;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:09.592149' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873050;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:09.592077' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000629  Lock_time: 0.000156  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873051;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001071  Lock_time: 0.000885  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873051;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:10.591944' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000841  Lock_time: 0.000607  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873051;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873052;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000406  Lock_time: 0.000242  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873052;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:11.589505' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000537  Lock_time: 0.000335  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873053;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:12.592492' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000341  Lock_time: 0.000141  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873054;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873054;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:13.589725' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000145  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873055;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:14.589513' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000616  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873056;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:15.592722' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000774  Lock_time: 0.000235  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873057;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000464  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873057;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:16.592306' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2663  Schema:   QC_hit: No
# Query_time: 0.000257  Lock_time: 0.000176  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873057;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2663  Schema:   QC_hit: No
# Query_time: 0.000128  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873057;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:44:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2664  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000192  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873058;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2664  Schema:   QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000175  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873058;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000881  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873058;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873059;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873060;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:19.592541' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000315  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873061;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001289  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873061;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:20.592216' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000271  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873062;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:21.592523' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000441  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873063;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:22.592562' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000377  Lock_time: 0.000187  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873064;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:23.593291' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000308  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873065;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000114  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873066;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:25.59053' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000602  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873066;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:25.589816' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000340  Lock_time: 0.000171  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873067;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000401  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873067;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:26.592079' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2667  Schema:   QC_hit: No
# Query_time: 0.000222  Lock_time: 0.000139  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873067;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2667  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000087  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873067;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:44:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2668  Schema:   QC_hit: No
# Query_time: 0.000311  Lock_time: 0.000204  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873068;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2668  Schema:   QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000177  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873068;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000121  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873068;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:27.592301' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000408  Lock_time: 0.000167  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873069;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000399  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873069;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:28.590095' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873070;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:29.590242' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000152  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873071;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000280  Lock_time: 0.000111  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873072;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:31.593254' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000285  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873072;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:31.5928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873073;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:32.589601' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000313  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873074;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:33.589878' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000792  Lock_time: 0.000571  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873075;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:34.589922' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000351  Lock_time: 0.000166  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873076;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:35.590269' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000359  Lock_time: 0.000165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873077;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000323  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873077;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:36.592342' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2671  Schema:   QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000140  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873077;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2671  Schema:   QC_hit: No
# Query_time: 0.000179  Lock_time: 0.000117  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873077;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:44:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2672  Schema:   QC_hit: No
# Query_time: 0.000181  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873078;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2672  Schema:   QC_hit: No
# Query_time: 0.000158  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873078;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000499  Lock_time: 0.000258  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873078;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:37.592391' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001575  Lock_time: 0.001400  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873079;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000144  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873079;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:38.594463' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001282  Lock_time: 0.001127  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873080;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:39.592322' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001099  Lock_time: 0.000916  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873080;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:39.592432' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000456  Lock_time: 0.000247  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873081;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000896  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873081;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:40.592291' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000304  Lock_time: 0.000126  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873082;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001295  Lock_time: 0.001059  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873082;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:41.592821' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000478  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873083;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:42.595088' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000112  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873083;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:42.59525' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000815  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873084;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873084;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000492  Lock_time: 0.000263  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873084;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:43.592413' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000363  Lock_time: 0.000079  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873085;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:44.59255' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000248  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873086;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:45.592481' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873087;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:46.592318' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000662  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873087;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:46.592954' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2675  Schema:   QC_hit: No
# Query_time: 0.000438  Lock_time: 0.000314  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873087;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2675  Schema:   QC_hit: No
# Query_time: 0.000213  Lock_time: 0.000133  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873087;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# Time: 220310  0:44:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2676  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000097  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873088;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2676  Schema:   QC_hit: No
# Query_time: 0.000140  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873088;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001533  Lock_time: 0.000692  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873088;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000814  Lock_time: 0.000381  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873088;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:47.589699' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002598  Lock_time: 0.001607  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873088;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:44:48.813'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:44:48.813')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:44:48.813')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:44:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000462  Lock_time: 0.000179  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873089;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:48.592516' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000489  Lock_time: 0.000302  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873090;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873090;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:49.592176' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000632  Lock_time: 0.000293  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873090;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:44:50.646'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:44:50.646')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:44:50.646')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:44:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000259  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873091;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873092;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:51.592091' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000231  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873093;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:52.59213' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000726  Lock_time: 0.000280  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873093;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000380  Lock_time: 0.000169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873094;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000273  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873095;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:54.589705' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000458  Lock_time: 0.000177  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873096;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:55.59207' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001143  Lock_time: 0.000967  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873097;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000444  Lock_time: 0.000252  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873097;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:56.592099' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2679  Schema:   QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000219  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873097;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2679  Schema:   QC_hit: No
# Query_time: 0.000293  Lock_time: 0.000217  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873097;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:44:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2680  Schema:   QC_hit: No
# Query_time: 0.000292  Lock_time: 0.000188  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873098;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2680  Schema:   QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000165  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873098;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000515  Lock_time: 0.000307  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873098;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:57.589907' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:44:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000536  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873099;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:44:58.592904' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000322  Lock_time: 0.000113  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873100;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000704  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873100;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:45:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000274  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873101;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:00.589984' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000136  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873102;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:01.592624' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873102;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:01.593329' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000785  Lock_time: 0.000588  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873103;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:02.592362' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001177  Lock_time: 0.000766  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873103;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001080  Lock_time: 0.000836  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873104;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:03.592801' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001316  Lock_time: 0.001100  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873104;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:03.59252' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873105;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:04.592342' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873106;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:05.592423' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001119  Lock_time: 0.000922  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873107;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:06.592581' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2683  Schema:   QC_hit: No
# Query_time: 0.000371  Lock_time: 0.000293  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873107;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2683  Schema:   QC_hit: No
# Query_time: 0.000215  Lock_time: 0.000152  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873107;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:45:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2684  Schema:   QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873108;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2684  Schema:   QC_hit: No
# Query_time: 0.000238  Lock_time: 0.000158  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873108;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001393  Lock_time: 0.001169  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873108;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000477  Lock_time: 0.000206  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873108;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:07.59227' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001284  Lock_time: 0.001085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873109;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:08.591885' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000356  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873110;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:09.589505' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873111;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:10.592463' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000483  Lock_time: 0.000226  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873112;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:11.592358' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000414  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873112;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:11.592703' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000582  Lock_time: 0.000319  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873113;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:12.592107' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000282  Lock_time: 0.000102  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873114;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:13.59017' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000317  Lock_time: 0.000119  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873115;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:14.589697' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000545  Lock_time: 0.000260  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873116;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:15.592529' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000342  Lock_time: 0.000128  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873117;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000243  Lock_time: 0.000085  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873117;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:16.58958' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2687  Schema:   QC_hit: No
# Query_time: 0.000212  Lock_time: 0.000134  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873117;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2687  Schema:   QC_hit: No
# Query_time: 0.000152  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873117;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:45:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2688  Schema:   QC_hit: No
# Query_time: 0.000189  Lock_time: 0.000105  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873118;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2688  Schema:   QC_hit: No
# Query_time: 0.000137  Lock_time: 0.000090  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873118;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000335  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873118;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:17.592599' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000093  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873119;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000275  Lock_time: 0.000099  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873119;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:18.591973' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000564  Lock_time: 0.000356  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873120;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:19.589515' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000592  Lock_time: 0.000375  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873120;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:19.589704' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000364  Lock_time: 0.000160  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873121;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:20.592668' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001118  Lock_time: 0.000883  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873122;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:21.592366' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000900  Lock_time: 0.000639  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873122;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:21.59249' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001112  Lock_time: 0.000811  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873123;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:22.592535' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001204  Lock_time: 0.000888  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873123;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:22.592545' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001458  Lock_time: 0.001161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873124;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:23.592276' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000391  Lock_time: 0.000176  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873125;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:24.592031' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000420  Lock_time: 0.000230  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873125;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:24.592003' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000580  Lock_time: 0.000265  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873126;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:25.589967' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001594  Lock_time: 0.001339  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873127;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:26.589517' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001447  Lock_time: 0.001133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873127;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:26.5897' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2691  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000103  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873127;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2691  Schema:   QC_hit: No
# Query_time: 0.000199  Lock_time: 0.000144  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873127;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:45:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2692  Schema:   QC_hit: No
# Query_time: 0.000170  Lock_time: 0.000098  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873128;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2692  Schema:   QC_hit: No
# Query_time: 0.000107  Lock_time: 0.000067  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873128;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000516  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873128;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:27.592509' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000443  Lock_time: 0.000259  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873128;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:27.592369' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000595  Lock_time: 0.000138  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873129;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000065  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873129;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000936  Lock_time: 0.000731  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873129;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:28.592102' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873130;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:29.589724' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000504  Lock_time: 0.000205  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873131;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:30.589509' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000262  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873132;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:31.592473' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873133;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:32.592389' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000969  Lock_time: 0.000796  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873134;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:33.592136' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001010  Lock_time: 0.000574  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873134;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:33.592297' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000272  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873135;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001077  Lock_time: 0.000931  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873135;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:34.59202' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000640  Lock_time: 0.000094  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873136;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000384  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873136;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:35.589794' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000125  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873137;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:36.593239' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2695  Schema:   QC_hit: No
# Query_time: 0.000267  Lock_time: 0.000167  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873137;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2695  Schema:   QC_hit: No
# Query_time: 0.000150  Lock_time: 0.000099  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873137;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:45:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2696  Schema:   QC_hit: No
# Query_time: 0.000417  Lock_time: 0.000259  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873138;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2696  Schema:   QC_hit: No
# Query_time: 0.000450  Lock_time: 0.000339  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873138;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001021  Lock_time: 0.000664  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873138;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:37.592403' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000702  Lock_time: 0.000328  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873139;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:38.592086' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000976  Lock_time: 0.000362  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873140;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:45:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000479  Lock_time: 0.000284  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873141;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000622  Lock_time: 0.000271  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873142;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:41.592753' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000521  Lock_time: 0.000186  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873143;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:42.592567' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000555  Lock_time: 0.000228  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873143;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:42.592029' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001519  Lock_time: 0.001264  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873144;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:43.592573' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000375  Lock_time: 0.000168  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873145;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:44.592162' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000369  Lock_time: 0.000154  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873146;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000454  Lock_time: 0.000225  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873147;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:46.592456' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2699  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000201  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873147;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2699  Schema:   QC_hit: No
# Query_time: 0.000216  Lock_time: 0.000155  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873147;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:45:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2700  Schema:   QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000125  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873148;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2700  Schema:   QC_hit: No
# Query_time: 0.000203  Lock_time: 0.000128  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873148;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000977  Lock_time: 0.000783  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873148;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000649  Lock_time: 0.000467  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873148;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:47.592183' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000910  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873148;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:45:48.813'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:45:48.813')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:45:48.813')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:45:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000869  Lock_time: 0.000695  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873149;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:48.591927' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000254  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873150;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:49.58965' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002306  Lock_time: 0.001776  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873150;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:45:50.643'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:45:50.643')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:45:50.643')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:45:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000163  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873151;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:50.592279' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000208  Lock_time: 0.000070  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873152;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000137  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873152;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:51.592132' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000430  Lock_time: 0.000174  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873153;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:52.592348' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000755  Lock_time: 0.000478  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873153;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:52.592151' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000087  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873154;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000490  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873154;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:53.594509' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000120  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873155;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:54.589623' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000115  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873155;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:54.589928' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000532  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873156;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:55.592848' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000442  Lock_time: 0.000272  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873157;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:56.589403' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000392  Lock_time: 0.000191  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873157;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2703  Schema:   QC_hit: No
# Query_time: 0.000415  Lock_time: 0.000276  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873157;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2703  Schema:   QC_hit: No
# Query_time: 0.000235  Lock_time: 0.000164  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873157;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:45:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2704  Schema:   QC_hit: No
# Query_time: 0.000249  Lock_time: 0.000170  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873158;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2704  Schema:   QC_hit: No
# Query_time: 0.000246  Lock_time: 0.000161  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873158;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000303  Lock_time: 0.000117  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873158;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:45:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000623  Lock_time: 0.000150  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873159;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# Time: 220310  0:46:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000729  Lock_time: 0.000380  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873160;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:45:59.592589' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:01
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000526  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873161;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:00.58935' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:02
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000410  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873162;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:01.592628' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:03
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001012  Lock_time: 0.000801  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873163;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000219  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873163;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:02.592163' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:04
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001138  Lock_time: 0.000827  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873164;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:05
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001205  Lock_time: 0.000900  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873165;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:04.592412' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001176  Lock_time: 0.000848  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873165;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:04.592476' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:06
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000529  Lock_time: 0.000239  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873166;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:05.592398' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000994  Lock_time: 0.000787  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873166;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:05.592526' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:07
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000386  Lock_time: 0.000190  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873167;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:06.592077' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000350  Lock_time: 0.000222  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873167;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:06.592127' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2707  Schema:   QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000137  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873167;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2707  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000150  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873167;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:46:08
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2708  Schema:   QC_hit: No
# Query_time: 0.000295  Lock_time: 0.000190  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873168;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2708  Schema:   QC_hit: No
# Query_time: 0.000193  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873168;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000500  Lock_time: 0.000223  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873168;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:07.589814' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000734  Lock_time: 0.000415  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873168;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:07.589902' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:09
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000688  Lock_time: 0.000366  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873169;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:08.589706' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:10
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001928  Lock_time: 0.001338  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873170;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000505  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873170;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:09.592473' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:11
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000663  Lock_time: 0.000452  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873171;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000510  Lock_time: 0.000279  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873171;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:10.592867' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:12
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000950  Lock_time: 0.000687  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873172;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000723  Lock_time: 0.000345  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873172;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:11.592686' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:13
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001632  Lock_time: 0.001394  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873173;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:14
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001406  Lock_time: 0.001123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873174;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:13.592295' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001545  Lock_time: 0.001207  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873174;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:13.592441' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:15
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873175;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000455  Lock_time: 0.000173  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873175;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:14.592296' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:16
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000512  Lock_time: 0.000218  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873176;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:15.592296' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:17
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000237  Lock_time: 0.000095  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873177;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:16.592241' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2711  Schema:   QC_hit: No
# Query_time: 0.000286  Lock_time: 0.000160  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873177;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2711  Schema:   QC_hit: No
# Query_time: 0.000175  Lock_time: 0.000114  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873177;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:46:18
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2712  Schema:   QC_hit: No
# Query_time: 0.000334  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873178;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2712  Schema:   QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000203  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873178;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000715  Lock_time: 0.000535  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873178;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000108  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873178;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:17.592459' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:19
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001257  Lock_time: 0.000937  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873179;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:18.590626' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:20
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000779  Lock_time: 0.000283  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873180;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000281  Lock_time: 0.000122  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873180;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:21
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000330  Lock_time: 0.000124  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873181;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000566  Lock_time: 0.000327  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873181;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:20.590373' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:22
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000472  Lock_time: 0.000291  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873182;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000553  Lock_time: 0.000262  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873182;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:21.592784' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:23
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000196  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873183;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:22.592907' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:24
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000261  Lock_time: 0.000101  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873184;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:23.589515' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000197  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873184;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:25
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000468  Lock_time: 0.000248  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873185;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:24.592864' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:26
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000966  Lock_time: 0.000472  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873186;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000405  Lock_time: 0.000175  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873186;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:25.589449' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:27
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000269  Lock_time: 0.000106  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873187;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:26.592893' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2715  Schema:   QC_hit: No
# Query_time: 0.000348  Lock_time: 0.000213  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873187;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2715  Schema:   QC_hit: No
# Query_time: 0.000200  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873187;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:46:28
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2716  Schema:   QC_hit: No
# Query_time: 0.000345  Lock_time: 0.000243  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873188;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2716  Schema:   QC_hit: No
# Query_time: 0.000197  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873188;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000321  Lock_time: 0.000149  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873188;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000845  Lock_time: 0.000373  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873188;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:27.589408' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:29
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000465  Lock_time: 0.000170  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873189;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:30
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000385  Lock_time: 0.000161  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873190;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:29.592402' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:31
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001026  Lock_time: 0.000780  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873191;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:30.592159' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001965  Lock_time: 0.001253  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873191;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:32
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000416  Lock_time: 0.000208  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873192;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:31.589901' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:33
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000433  Lock_time: 0.000162  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873193;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:32.589552' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000325  Lock_time: 0.000134  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873193;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:32.589453' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:34
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000370  Lock_time: 0.000184  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873194;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:33.592456' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:35
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001626  Lock_time: 0.001333  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873195;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:34.592209' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001732  Lock_time: 0.001372  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873195;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:34.592336' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:36
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000548  Lock_time: 0.000278  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873196;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:35.591868' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:37
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000423  Lock_time: 0.000201  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873197;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000488  Lock_time: 0.000232  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873197;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:36.589831' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2721  Schema:   QC_hit: No
# Query_time: 0.000205  Lock_time: 0.000124  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873197;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2721  Schema:   QC_hit: No
# Query_time: 0.000168  Lock_time: 0.000110  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873197;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:46:38
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2722  Schema:   QC_hit: No
# Query_time: 0.000255  Lock_time: 0.000184  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873198;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2722  Schema:   QC_hit: No
# Query_time: 0.000188  Lock_time: 0.000129  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873198;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000550  Lock_time: 0.000351  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873198;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:37.58963' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:39
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873199;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:38.592995' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:40
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000543  Lock_time: 0.000147  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873200;
select vid_job.* from VID_JOB left join 
 (select user_Id, 1 as has_any_in_progress_job from VID_JOB  where JOB_STATUS = 'IN_PROGRESS' or TAKEN_BY IS NOT NULL 
group by user_id)  users_have_any_in_progress_job_tbl
on vid_job.user_id = users_have_any_in_progress_job_tbl.user_id where     JOB_STATUS = 'PENDING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and (
select sum(CASE WHEN JOB_STATUS='IN_PROGRESS' or (JOB_STATUS='PENDING' and TAKEN_BY IS NOT NULL) THEN 1 ELSE 0 END) as in_progress
from VID_JOB ) <200 
 and TEMPLATE_Id not in 
(select TEMPLATE_Id from vid_job where   TEMPLATE_Id IS NOT NULL and(   (JOB_STATUS IN('FAILED','FAILED_AND_PAUSED') and DELETED_AT is null)   or JOB_STATUS='IN_PROGRESS'   or TAKEN_BY IS NOT NULL)) 
 order by has_any_in_progress_job, CREATED_DATE, INDEX_IN_BULK limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000360  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873200;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:39.589408' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:41
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000279  Lock_time: 0.000133  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873201;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:40.59241' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000353  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873201;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:40.592745' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:42
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000447  Lock_time: 0.000164  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873202;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:41.592313' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:43
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000575  Lock_time: 0.000274  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873203;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:42.592379' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000374  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873203;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:42.592517' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:44
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001326  Lock_time: 0.001139  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873204;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:45
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001239  Lock_time: 0.001092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873205;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:44.592002' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:46
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000460  Lock_time: 0.000203  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873206;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:45.591936' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001191  Lock_time: 0.000925  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873206;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:45.592088' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:47
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000228  Lock_time: 0.000092  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873207;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:46.589795' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2725  Schema:   QC_hit: No
# Query_time: 0.000186  Lock_time: 0.000113  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873207;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2725  Schema:   QC_hit: No
# Query_time: 0.000191  Lock_time: 0.000141  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873207;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:46:48
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2726  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000183  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873208;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2726  Schema:   QC_hit: No
# Query_time: 0.000225  Lock_time: 0.000143  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873208;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000314  Lock_time: 0.000130  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873208;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.99]
# Thread_id: 2204  Schema: camundabpmn  QC_hit: No
# Query_time: 0.002390  Lock_time: 0.001694  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873208;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:46:48.814'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:46:48.814')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '8e5c4b45-a000-11ec-ab96-dad5dec60866'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:46:48.814')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:46:49
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000691  Lock_time: 0.000490  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873209;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:48.590046' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:50
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000231  Lock_time: 0.000097  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873210;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:49.589713' order by MODIFIED_DATE ASC limit 1;
# User@Host: so_user[so_user] @  [10.242.250.96]
# Thread_id: 2158  Schema: camundabpmn  QC_hit: No
# Query_time: 0.000608  Lock_time: 0.000249  Rows_sent: 0  Rows_examined: 1
# Rows_affected: 0  Bytes_sent: 356
use camundabpmn;
SET timestamp=1646873210;
select RES.ID_,
      RES.REV_,
      RES.DUEDATE_,
      RES.PROCESS_INSTANCE_ID_,
      RES.EXCLUSIVE_
    
    from ACT_RU_JOB RES

    where (RES.RETRIES_ > 0)
      and (
       
          RES.DUEDATE_ is null or
       
          RES.DUEDATE_ <= '2022-03-10 00:46:50.644'
      )
      and (RES.LOCK_OWNER_ is null or RES.LOCK_EXP_TIME_ < '2022-03-10 00:46:50.644')
      and RES.SUSPENSION_STATE_ = 1

       
        and (RES.DEPLOYMENT_ID_ is null
         
          or
           
           
           
     
     
	( RES.DEPLOYMENT_ID_ IN
	 (  
	  '5a404c5b-a000-11ec-9e52-e6c15f7a6ff4'
	   
	 ) 
	)
   
   
         
        )
       

      and ( 
    ( 
    RES.EXCLUSIVE_ = 1
          and not exists(
            select J2.ID_ from ACT_RU_JOB J2
            where J2.PROCESS_INSTANCE_ID_ = RES.PROCESS_INSTANCE_ID_                                           -- from the same proc. inst.
            and (J2.EXCLUSIVE_ = 1)                                                              -- also exclusive
            and (J2.LOCK_OWNER_ is not null and J2.LOCK_EXP_TIME_ >= '2022-03-10 00:46:50.644')  -- in progress
            )
   )
    or
     
    RES.EXCLUSIVE_ = 0
   
   )

       

     
    LIMIT 3 OFFSET 0;
# Time: 220310  0:46:51
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000263  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
use vid_openecomp_epsdk;
SET timestamp=1646873211;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:52
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000542  Lock_time: 0.000296  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873212;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:51.589541' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:53
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000326  Lock_time: 0.000143  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873213;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:52.592645' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:54
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000336  Lock_time: 0.000199  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873214;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:53.592351' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:55
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000202  Lock_time: 0.000061  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873215;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:54.591953' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000298  Lock_time: 0.000107  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873215;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:54.592065' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:56
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000245  Lock_time: 0.000078  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873216;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:55.589854' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:57
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000522  Lock_time: 0.000227  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873217;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:56.589674' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000506  Lock_time: 0.000275  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873217;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:56.589959' order by MODIFIED_DATE ASC limit 1;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2729  Schema:   QC_hit: No
# Query_time: 0.000166  Lock_time: 0.000094  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873217;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2729  Schema:   QC_hit: No
# Query_time: 0.000133  Lock_time: 0.000088  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873217;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# Time: 220310  0:46:58
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2730  Schema:   QC_hit: No
# Query_time: 0.000302  Lock_time: 0.000148  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 659
SET timestamp=1646873218;
SELECT
		  page_size, compress_ops, compress_ops_ok, compress_time, uncompress_ops, uncompress_time
		  FROM information_schema.innodb_cmp;
# User@Host: root[root] @  [127.0.0.1]
# Thread_id: 2730  Schema:   QC_hit: No
# Query_time: 0.000187  Lock_time: 0.000106  Rows_sent: 5  Rows_examined: 5
# Rows_affected: 0  Bytes_sent: 695
SET timestamp=1646873218;
SELECT
                  page_size, buffer_pool_instance, pages_used, pages_free, relocation_ops, relocation_time
                  FROM information_schema.innodb_cmpmem;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001400  Lock_time: 0.001165  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873218;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:46:59
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000306  Lock_time: 0.000123  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873219;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000300  Lock_time: 0.000110  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873219;
select * from VID_JOB where    JOB_STATUS = 'RESOURCE_IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:58.592205' order by MODIFIED_DATE ASC limit 1;
# Time: 220310  0:47:00
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 670  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.001320  Lock_time: 0.001188  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873220;
select * from VID_JOB where    JOB_STATUS = 'CREATING'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' order by MODIFIED_DATE ASC limit 1;
# User@Host: vidadmin[vidadmin] @  [10.242.218.83]
# Thread_id: 669  Schema: vid_openecomp_epsdk  QC_hit: No
# Query_time: 0.000951  Lock_time: 0.000763  Rows_sent: 0  Rows_examined: 0
# Rows_affected: 0  Bytes_sent: 0
SET timestamp=1646873220;
select * from VID_JOB where    JOB_STATUS = 'IN_PROGRESS'    and TAKEN_BY is null    and DELETED_AT is null     and BUILD = '8.0.2..677' and MODIFIED_DATE <= '2022-03-10 00:46:59.591901' order by MODIFIED_DATE ASC limit 1;