synchronous

What is a better way to do synchronous and asynchronous MView refreshes in Oracle 11g?

旧时模样 提交于 2019-12-24 12:50:08
问题 I have 7 Materialized Views that need to be refreshed on a schedule. Five of them are data source independent and could be rebuilt asynchronously. Two of them are dependent on some of the first five MViews and need to wait until those have been refreshed. These last two are independent of each other and could run asynchronously. I originally asked this question here. My plan was to go the DBMS_JOB.SUBMIT route. It was explained to me that DBMS_JOB.SUBMIT is an Oracle 8-level approach to the

Mixing synchronous and asynchronous socket calls

*爱你&永不变心* 提交于 2019-12-24 11:43:56
问题 Is it considered bad practice to combine synchronous and asynchronous socket calls on the same server? For example (modified from the msdn): // Initalize everything up here while (true) { // Set the event to nonsignaled state. allDone.Reset(); //allDone is a manual reset event // Start an asynchronous socket to listen for connections. Console.WriteLine("Waiting for a connection..."); listener.BeginAccept( new AsyncCallback(AcceptCallback), listener); // Wait until a connection is made before

How do the different browsers handle timeout with synchronous XHR

拈花ヽ惹草 提交于 2019-12-24 07:35:16
问题 On Wednesday the AJAXy CRM system I maintain broke for many users, because Firefox started reporting "Use of XMLHttpRequest's timeout attribute is not supported in the synchronous mode in window context" . The other major browsers still work fine so as a workaround I have advised people not to use Firefox. From what I understand synchronous requests are A Bad Thing, so I can only assume some recent update to Firefox has stopped it from accommodating Bad Things. All previous discussions (here

Performing Synchronous AND Asynchronous AJAX at the Same Time

孤街醉人 提交于 2019-12-24 05:42:28
问题 I'm wanting to run AJAX to get some URL data, build an object from the data and assign it to a global object variable. So I know I need to run a synchronous ajax request. (Right?) Well I also want to make use of the beforeSend setting to give my users a loading screen. (I probably should be asking first, is beforeSend the only way to achieve that?) How might I combine the benefits sync and async? async: $.ajax({ url:'scripts/scripts.php?call=page&url='+thisurl, /*local*/ dataType:'html',

Performing Synchronous AND Asynchronous AJAX at the Same Time

帅比萌擦擦* 提交于 2019-12-24 05:41:06
问题 I'm wanting to run AJAX to get some URL data, build an object from the data and assign it to a global object variable. So I know I need to run a synchronous ajax request. (Right?) Well I also want to make use of the beforeSend setting to give my users a loading screen. (I probably should be asking first, is beforeSend the only way to achieve that?) How might I combine the benefits sync and async? async: $.ajax({ url:'scripts/scripts.php?call=page&url='+thisurl, /*local*/ dataType:'html',

phonegap html5 android synchonous Filesystem IO

浪子不回头ぞ 提交于 2019-12-24 03:29:45
问题 How can I read and write files synchronously, using PhoneGaps Filesystem API? Is there a an synchronous wrapper available? 回答1: There is no way to access files synchronously through the provided api. Guessing from the way phonegap is implemented i doubt that you can write a plugin to do this synchronously. 回答2: Because of the way the Java-to-JavaScript bridge on Android works, it is pretty much impossible to do a synchronous implementation of File IO. This is because each Java object in

JavaScript Synchronous Loops

可紊 提交于 2019-12-23 13:09:09
问题 I've been hitting my head on JavaScript's Async behavior when scaling functions from my test data to production work. I have a for loop that I know will range in the hundreds of thousands, will Node pause a for loop and come back to it or can I safely assume that Node will execute the loop to completion before returning my function? Here is the loop in question: function fixData(dataset, blockcount){ for (var i = 0, len = dataset.length; i < len; i++) { var obj = dataset[i]; obj._id = obj

Asynchronous/Synchronous Javascript

本小妞迷上赌 提交于 2019-12-23 12:49:33
问题 I'm having some trouble understanding the difference between asynchronous and synchronous Javascript, and was hoping someone could shed some light on this. I know Javascript is inherently synchronous, but you can use asynchronous events/callbacks to alter your program flow. However, what happens if you call a function with no callback that contains AJAX? For example, if I have the following code, where foo() contains some sort of server query and foobar() contains some output text: foo();

Semaphores to run asynchronous method synchronously

夙愿已清 提交于 2019-12-23 05:05:13
问题 In my app, I use an asynchronous class method, that I need to run synchronously. As far as I understand, I should use semaphores to accomplish this. Using semaphores is something I never had to do before, so now I'm struggling to put them in the right place. I hope some of you could help me out here. This is my code: -(void)CreateNewerEventInCalendar:(Event*)myEvent{ [MyCalendar requestAccess:^(BOOL granted, NSError *error) { if (granted) { BOOL result = [MyCalendar addEventAt:myEvent

Synchronous <script> statements?

♀尐吖头ヾ 提交于 2019-12-23 04:43:28
问题 I am using xmlhttprequest (and eval ) to dynamically load scripts. Next I evaluate the script and look to see if there are any other scripts to load. Along the way if any of the scripts cause and exception, the error message reported indicates the line number associated with eval , not with the actual error in the script. On another question it was suggested I use <script> instead to get better error messages. Unfortunately, <script> is asynchronous, and I won't be able to control the order