Re: Docs about "twinned" process and pre-emptive mode

2018-01-19 Thread Peter Jakobsson via 4D_Tech
Ok, I dug out an old laptop which had a lot of interesting discussion on this 
from 2011. What I’m wondering is if triggers can now run pre-emptively (if they 
are compliant code-ways: no IP variables etc).

In 2011, David Dancy said that any regular 4D code whatsoever would force the 
method to run co-operatively. But then in 2016 there is a discussion that 
appears to imply that triggers can run preemptively IF they don’t run any 
non-complient code.

By the way, I found the documentation I was looking for: 
http://doc.4d.com/4D-Language-Reference-16.3/Processes/Preemptive-4D-processes.300-3651705.en.html
 


That seems to endorse the idea that triggers can run preemptively if they are 
compliant. I wonder when that feature arrived ?

Regards

Peter

> On 19 Jan 2018, at 04:10, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com 
> > wrote:
> 
> you will see a P (for preemptive) or C (for cooperative) indicated for each 
> network request.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Docs about "twinned" process and pre-emptive mode

2018-01-19 Thread Peter Jakobsson via 4D_Tech


> On 19 Jan 2018, at 04:10, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> are you familiar with the request log file?
> 
> you will see a P (for preemptive) or C (for cooperative) indicated for each 
> network request.

The log file seems to do this for everything *except* the SQL statements (which 
are the ones I’m interested in)…

https://s18.postimg.org/719e5wjjt/sql_Screenshot.png

Peter

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Docs about "twinned" process and pre-emptive mode

2018-01-18 Thread Peter Jakobsson via 4D_Tech
Thanks Miyako. That’s useful.

I basically was wanting to know if inline SQL used the “twinned” pre-emptive 
thread or not.

Peter

> On 19 Jan 2018, at 04:10, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> are you familiar with the request log file?
> 
> you will see a P (for preemptive) or C (for cooperative) indicated for each 
> network request.

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: Docs about "twinned" process and pre-emptive mode

2018-01-18 Thread Keisuke Miyako via 4D_Tech
Hello,

focusing on commands or syntax may lead you in the wrong direction, as there 
are so many possibilities in SQL and QUERY.

are you familiar with the request log file?

you will see a P (for preemptive) or C (for cooperative) indicated for each 
network request.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Docs about "twinned" process and pre-emptive mode

2018-01-18 Thread Peter Jakobsson via 4D_Tech
Hi

I’ve been raking through the online documentation trying to find where the 
querying modes pre-emptive / co-operative are documented but have been 
unsuccessful.

What I’m specifically looking for is more background on what conditions SQL 
queries use the twinned pre-emptive process for example.

Can anybody point me to a link ?

Many thanks !

Peter
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**