You can check it with something like
parse arg base user using
call rxfuncadd 'sqlexec', 'db2ar', 'sqlexec'
call rxfuncadd 'sqldbs', 'db2ar', 'sqldbs'
base = 'xxx'
user = 'yyy'
pwd = 'zzz'
call sqlexek 'connect to 'base' user' user ' using ' pwd
'db2 connect to 'base' user' user ' using ' pwd
'db2 UPDATE COMMAND OPTIONS USING C OFF'
do i = 1 to 10000000
cmd = 'db2 create sequence xyz'i
say cmd
cmd
end
'db2 rollback'
'db2 terminate'
return
But I think it dubious design. They are out of transactions and no gaps are not guaranteed.
Am Sonntag, 11. Juni 2017 08:32:54 UTC+2 schrieb vvm...@gmail.com:
You can check it with something like
parse arg base user using
call rxfuncadd 'sqlexec', 'db2ar', 'sqlexec'
call rxfuncadd 'sqldbs', 'db2ar', 'sqldbs'
base = 'xxx'
user = 'yyy'
pwd = 'zzz'
call sqlexek 'connect to 'base' user' user ' using ' pwd
'db2 connect to 'base' user' user ' using ' pwd
'db2 UPDATE COMMAND OPTIONS USING C OFF'
do i = 1 to 10000000
cmd = 'db2 create sequence xyz'i
say cmd
cmd
end
'db2 rollback'
'db2 terminate'
return
okay, I could've had this idea ;-) Thanks for trying. So how far did you get? Looks like 100'000 aren't a problem...
But I think it dubious design. They are out of transactions and no gaps are not guaranteed.
Yes, that was my second worry. When does a sequence get incremented? When you select a next value (I guess this is it) or on the next commit. Both present their own problems.
So it's probably best to think about an application-side implementation. The no-gaps thing is tricky...
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 19:54:19 |
Calls: | 8,133 |
Calls today: | 6 |
Files: | 13,082 |
Messages: | 5,856,151 |