rspec/rules/S4584/plsql/rule.adoc

35 lines
850 B
Plaintext
Raw Normal View History

== Why is this an issue?
2021-04-28 16:49:39 +02:00
``++CREATE_TIMER++`` is generating network traffic each time the timer is fired. It's probably totally fine for a timer being executed every hour but generally, this is used to provide clocks components that are going to generate network traffic every second or more.
It is recommended by Oracle to examine timers and replace them with JavaBeans.
=== Noncompliant code example
2021-04-28 16:49:39 +02:00
2022-02-04 17:28:24 +01:00
[source,sql]
2021-04-28 16:49:39 +02:00
----
BEGIN
timer := CREATE_TIMER('foo', 1000, REPEAR)
ENDl
----
== Resources
2021-04-28 16:49:39 +02:00
* https://docs.oracle.com/cd/A97335_02/apps.102/a86202/chap11.htm[11.3.4 Other Techniques to Improve Performance]
ifdef::env-github,rspecator-view[]
'''
== Implementation Specification
(visible only on this page)
=== Message
Replace "CREATE_TIMER" by a JavaBean timer executed on Oracle Forms client side.
endif::env-github,rspecator-view[]