Insert Delayed?

I had a thought this afternoon while I was considering performance issues with ADDT as to whether or not MySQL delayed inserts are supported. does anybody know yay or nay before I investigate further?
I don't think it would be that hard to add as a feature if not. A new method could be added to the tNG_insert transaction object and accessed like....
$ins_dbTable->setInsertMethod("delayed");
this would default to "standard"
The reason i'm after a delayed insert is for things like a stats counter when users view products. inserting a stats row isn't mission critical so it doesn't have to be transactionally safe and anything to speed up views has to be a good thing.
Feature suggestion for the team?

Hi Gunter,
That is not the functionality I am looking for. Using the sleep() function in a before trigger will slow down the execution.
The purpose of INSERT DELAYED is to fire off an INSERT statement to MySQL blindly without acknowledgement that it has actually taken place. It is immediately queued up to be inserted when the db table becomes free, thus not delaying the scripts execution.

Similar Messages

  • How to insert delay without using loops, and how can I use variable to store data in labview

    Hi all,
    I am new to Labview and I realized that quite often I am in condition to require a delay beween two functions or elements.. how can we insert a delay in such cases?
    I know how to use delays in a loop. but don't know how to inser some time delay between two elements.
    I have one more question, I know its a bad practice to post 2 questions in 1 thread.
    How can I use a temporary variable to store data, So far I am storing it in an indicator by making it invisible in front panel and making local variable of that indicator, is it the right way to do it ?
    Thanks in advance.

    Generally, LV doesn't have variables in the same sense that most languages do. You can use indicators to perform the same function as variables, but as Adnan pointed out, you run the risk of having race condition and it creates data copies, which is a problem if you have a lot of data. In most cases, you should use wires to perform the function of variables, which is to store data and make it available to the different functions in your code. Instead of thinking about variables, you need to think about data (something like "I have the data coming out of this function. Where does it need to go?").
    Try to take over the world!

  • Can i insert delay and export to audio only affected wave data?

    Let me explain with example,
    2 notes of snare in the piano roll. I insert echo delay and set what ever i want. I want to export audio only the reflection of this delay effect, not the 2 notes of snare.
    Possible?

    Happy to help!

  • How to insert delay in array?

    in my program i need to send array for control 5 servo motors , but i need to send them with delay between each number, it  suppose to control pick and place robot, any idea ?
    is it possible to apply delay within array? its urgent thanks 

    erfan wrote:
    I need delay between arrays, for instance if i send 45 56 78 87 54 for my servo motors (there are five servo motor ),  i need delay between this number,.., 
    Your statements are confusing and conflicting. You talk about "this number" but show five numbers. Do you need delays between arrays (as you just said and as your code already does) or delays between the elements of the array?
    If you need a delay between the elements, you need to add a small inner FOR loop containing the write node and autoindex over the blue 1D array, similar to steve's suggestion..
    If this is not the solution, you need to be much clearer in your description, for example describe in detail how the delay should look, e.g.:
     45 56 78 87 54 delay
     or 45 delay 56 delay 78 delay  87 delay  54 delay
    or something esle
    LabVIEW Champion . Do more with less code and in less time .

  • Delays in insert

    My statpack report say:
    CPU Elapsd
    Physical Reads Executions Reads per Exec %Total Time (s) Time (s) Hash Value
    INSERT INTO log_mov ( MOV_institution_id, MOV_local_date, MOV_lo
    cal_time, MOV_trx_code, MOV_trace_num, MOV_access_id, MOV_msg_ty
    pe, MOV_debit_credit_reason, MOV_debit_credit_descr, MOV_trx_act
    ion_code, MOV_pure_action, MOV_transmition_time, MOV_acq_busines
    s_date, MOV_terminal_id, MOV_ref_num, MOV_term_unit, MOV_channel
    9,082 181 50.2 1.4 0.81 61.75 246240137
    My question:
    This Insert delay 61 sec?
    Why?
    Thanks
    Greetings
    Juan

    The data is accumulated.
    So it took 61 secs to insert 181 records.
    Whether that is slow? Who can tell?
    You didn't post a version. Why?
    You didn't post a platform. Why?
    You didn't post data about file statistics. Why?
    You didn't post the report properly formatted. Why?
    Sybrand Bakker
    Senior Oracle DBA

  • NI FPGA based programmed delay generator

    Hello,
    I am seeking for some suggestions from those working with degital delay generators.
    We have a TTL trigger pulse train in which pulses are not equidistant in time (seperation between two pulses is not the same, it can be few ns to few microsecond), however, on average, the rate would be <2MHz. The pulses are 10-20ns width and 2.5V amplitude. From this, we want to generate 3-4 trigger pulse trains, which would be delayed with respect to the initial (input) pulse train by some arbitrary values (ns to few microsecond). However, the point is, we also want some trigger pulse trains in which only even number of triggers (or odd triggers) could be present. So in other words, we want to program the delay generator in such a way that one of the outputs could have only even or odd trigger pulses of the initial trigger pulse. 
    We first tried to look for available delay generator boxes and PCI delay generators. The problem is that they have insertion delay of typically 50ns or more. So in other words, the output triggers would be delayed from the initial trigger pulse not less than 50ns. Other, If we program them with labview, It seems the output response would be after few ms. These are quite large delays for us.
    One such delay box manufecturing company suggested us to use FPGA based delay generators, as they say that these devices are having low insertion delays and quite fast programmable response. I looked in NI website for insertion delay and other parameters, but could not find these values. Pl. suggest whether FPGA based delay generators have low insertion time (<10-30ns) and if we program them, the output could be generated within ns response time?? As I am new with such devices, I would sppreciate if anyone could suggest about the possibilities to generated the delay sequences (even only or odd only triggers) using FPGA devices.
    Thank you

    MWM,
    If you are planning to use the analog input I would recommend using the the 783x family of boards. They have analog inputs and they can provide the +/-10 v to the cRIO-9263 boards

  • Kill session through batch file but with DELAY/SLEEP

    respected forum members,
    i have a database 9i release 2 on windows server 2003.
    as we r working in a territory where load shedding (electricity failure) is big problem intervaly. as users r working so there computer shutdown while they are working when there is power failure.
    about 250 sessions are opened in peak hours and i want to kill these sessions.
    so i want to write a batch file which kill session but at the same time I WANT TO PUT DELAY IN THE BATCH FILE which delay for 2 seconds after killing 20 sessions.
    can any body help me to write such a batch file which delays for 2 seconds after killing 20 sessions. HOW to insert DELAY/SLEEP in batch file.
    thanks

    I'm not sure I understand the point of this script. If the power fails and the server goes down, obviously all sessions will be killed. If the power fails and the client goes down leaving database sessions, you would generally want to enable dead connection detection or limit the idle time of a session in the profile so that Oracle can automatically kill those sessions. Manually killing sessions should be a last resort.
    If you really want to write this sort of script, could the batch file simply call DBMS_LOCK.SLEEP to implement the delay? Or do you literally mean that you only want the delay to come from an operating system call?
    Justin

  • I understand it is possible to have a delay of 60 s between transitions in Keynote for ipad. How do I do this?

    I understand that it is possible to have a delay of 60 s (rather than the 10 s shown on the slider) between transitions on Keynote for ipad. Can anyone tell me how to do this?

    casper,
    Are you looking at Keynote for the Mac or Keynote for iOS?
    I see that option for the Mac but not for the iPad (that's why I didn't reply earlier, I couldn't find out how to do it either other than maybe duplicating slides and inserting delays with no transition to make it look like a longer delay (no change + delay, no change + delay, etc = long delay) ).

  • File adapter to pick a single file

    The scenario is PI File adapter would pick files from a 3rd party FTP location. The 3rd party is placing files with file names using date time stamp.
    The requirement is to process one file at a a time - I have mentioned the Processing Sequence as 'By Date' which means the adpater would pick the files sequentially. But I want the adapter to pick only one file at a time rather than picking all the available files in the system.
    Is that possible to do?
    Thanks.
    Anuradha.

    Hi Anuradha,
      Could you please kindly provide answers to the queries below so that forum members can have a clear picture of your requirement
    1. What is the operating system of your PI server?
    2. What is the version of PI you are working on?
    3. What exactly do you mean by statement " I want the adapter to pick only one file at a time rather than picking all the available files in the system."  since adapter will actually pick up files one by one only in each polling interval. This goes in PI pipeline
    one after another in quick succession.
    4. Do you mean that you want to insert delays between successive file pick up then Baskar has already answered your question.
    5. Do you want the channel to pick up only one file in a day out of all possible file?
    6. Could you please kindly provide any sample file name you are receiving in PI ?
    regards
    Anupam

  • Serial VISA 'Write' -why is it slow to return even with large buffer?

    Hi,
    I'm writing a serial data transfer code 'module' that will run 'in the background' on a cRIO-9014.  I'm a bit perplexed about how VISA write in particular seems to work.
    What I'm seeing is that the VISA Write takes about 177ms to 'return' from a 4096 byte write, even though my write buffer has been set to >> 4096.
    My expectation would be that the write completes near instantly as long as the VISA driver available buffer space is greater than the bytes waiting to be written, and that the write function would only 'slow down' up to the defined VISA timeout value if there was no room in the buffer.
    As such, I thought it would be possible to 'pre-load' the transmit buffer at a high rate, then, by careful selection of the time-out value relative to the baud rate, it would self-throttle once the buffer fills up?
    Based on my testing this is not the case, which leaves me wondering:
    a) If you try to set the transmit buffer to an unsupported value, will you get an error?
    b) Assuming 'yes' to a, what the heck is the purpose of the serial write buffer? I see no difference running with serial buffer size == data chunk size and serial buffer size >> data chunk size??
    QFang
    CLD LabVIEW 7.1 to 2013

    Hi, I can quickly show the low-level part as a png. It's a sub-vi for transferring file segments.  Some things like the thin 'in-line' VI with (s) as the icon were added to help me look at were the hold-up is.  I cropped the image to make it more readable, the cut-off left and right side is just the input and output clusters.
    In a nut-shell, the VISA Write takes as much time to 'return' as it would take to transfer x bytes over y baud rate.  In other words, even though there is suppused to be a (software or hardware) write and read buffer on the com port, the VISA write function seems to block until the message has physically left the port (OR it writes TO the buffer at the same speed the buffer writes out of the port).  This is very unexpected to me, and what prompted me to ask about what the point is of the write buffer in the first place?  -The observations are on a 9014 RT target built in serial port.  Not sure if the same is observed on other targets or other OS's.  [edit: and the observation holds even if transmitting block-sizes of say 4096 with a buffer size of 4096 or 2*4096 or 10 * 4096 etc. I also tried smaller block sizes and larger block sizes with larger still buffers.  I was able to verify that the buffer re-size function does error out if I give it an insane input buffer size request, so I'm taking that to mean that when I assign e.g. a 4MiB buffer space with no error, the write buffer actually IS 4MiB, but I have not found a property to read back what the HW buffer is, so all I have to base that on is the lack of an error during buffer size setting.) [\edit\]
    The rest of the code is somewhat irrelelvant to this discussion, however, to better understand it, the idea is that the remote side of the connection will request various things, including a file.  The remote side can request a file as a stream of messages each of size 'Block Size (bytes)', or it can request a particular block (for handling e.g. re-transmission if file MD5 checksum does not match).   The other main reason for doing block transfers is that VISA Write hogs a substantial ammount of CPU, so if you were to attempt to write e.g. a 4MiB file out the serial port, assuming your VISA time-out is sufficiently long for that size transfer, the write would succeed, but you would see ~50% CPU from this one thread alone and (depending on baud rates) it could remain at that level for a verrry long time.   So, by transferring smaller segments at a time, I can arbitrarily insert delays between segments to let the CPU sleep (at the expense of longer transfer times).  The first inner case shown that opens the file only runs for new transfers, the open file ref is kept on a shift register in the calling VI.  The 'get file offset' function after the read was just something I was looking at during (continued) development, and not required for the functionality that I'm describing.
    QFang
    CLD LabVIEW 7.1 to 2013

  • Restricting the File adapter to pick up only a part of the payload

    Hi ,
    I have a csv file like below,
    $H$,Header1, xyz, xyz
    $H$,Header2, xyz, xyz
    $H$,Header3, xyz, xyz
    $D$,Detail1,xyz,xyz
    $D$,Detail2,xyz,xyz
    $D$,Detail3,xyz,xyz
    Header and Details links have no link to each other!!! I just wanted to check if at all it is possible for the file adapter to skip the header llines and take only the detail lines.
    Does this require any tweaking in the nxsd that is generated??
    Any light on this would help... :)

    Hi Anuradha,
      Could you please kindly provide answers to the queries below so that forum members can have a clear picture of your requirement
    1. What is the operating system of your PI server?
    2. What is the version of PI you are working on?
    3. What exactly do you mean by statement " I want the adapter to pick only one file at a time rather than picking all the available files in the system."  since adapter will actually pick up files one by one only in each polling interval. This goes in PI pipeline
    one after another in quick succession.
    4. Do you mean that you want to insert delays between successive file pick up then Baskar has already answered your question.
    5. Do you want the channel to pick up only one file in a day out of all possible file?
    6. Could you please kindly provide any sample file name you are receiving in PI ?
    regards
    Anupam

  • Error in External programe

    Dear All,
    We are facing error in one of external programe; which is included in one of step of a job. the programe is 'sleep' which is resposible for inserting delay in job e.g. 300 sec. the value 300 is the parameter for the external programe.
    when we run the job this program doesnt stop. keep on giving delay in job. or else in other job it doesnt run .... can any budy suggest hte troubleshooting of the same.
    Thanks in advanse.
    <b>Regards,</b>
    Swapnil Lakhe

    Hello Swapnil,
    The most probable reason that I get from the description is that the counter is never passed back to the job control.
    What you can do as an alternative is write an simple ABAP to loop for 300 secs and then write an message Like "Completed or finished" and enter this ABAP program as an step instead of the External program.
    This should work 100 %.
    Regards
    Amit

  • New actions !!

    Hi All,
    i have a requirement of creating a new action....in the CHARM flow after developer relaeases the transport request .. we have 2 change managers who should approve that Transport request before moving into quality....suppose if dev releases the transport request... after that 1st change manager should come and authorize it....nd then only when 1st change manager approves it 2nd change manager shud come and approve it..... but the question is while the 1st change manager is approving the transport request...nd if that transport request was not released a pop up should come that the trasnport request has not yet been released .... so how come we can perform this check when 1st change manager is approving the trasnport request !!!!
    Regards,
    Deadlocks
    Edited by: DEADLOCKS on Jun 14, 2010 8:00 AM

    You can insert delays between script steps, this may help. You can insert fractions of a second delay if you desire.
    I recently had problem with an action not running consistently without errors. I discovered that the icon previews in the layers pallet was slowing down the script. I had a bunch of layers that kept trying to auto update the icon preview as the script was running. I solved the problem by adding a step at the beginning and end of the action that would hide the open pallet windows. Now it's running properly even when in accelerated mode.

  • Simple File Operation Problems

    Hey everyone. I have a process that needs to read a file, do some work with the contents, then move the file to either a fail or success folder. I have everything working except for the very last step where it deletes the files from the source dir. Also, the move command seems to be acting like copy (hence the reason I need a delete in the first place). I have tried inserting delays between the move and delete, and even putting the delete action in a while loop that would only break if it succeeded at deleting the file (page would time out). If you try and delete the file manually through windows explorer, it works just fine. This is a windows server 2003 box, CF is running with full permissions on this directory. Here is my code.
    <cftry>
         <cfif fileexists("\\fpiserver\company\processing\fail\#name#")>
              <cffile action="delete" file="\\fpiserver\company\processing\fail\#name#">
         </cfif>
         <cfif fileexists("\\fpiserver\company\processing\#name#")>
              <cffile action="move" source = "\\fpiserver\company\processing\#name#" destination = "\\fpiserver\company\processing\Fail\#name#" >
         </cfif>
         <cfif fileexists("\\fpiserver\company\processing\#name#")>
              <cffile action="delete" file="\\fpiserver\company\processing\#name#">
         </cfif>
         <cfcatch type="any" >
    Also could not delete file. #cfcatch.message#
         </cfcatch>
    </cftry>
    I know your first thought is going to be the UNC paths, and you may be right, but the first delete and the move/copy work fine (basically). So I'm not sure that is it. I also tried applying the latest hotfix/patch. Thanks for any help.

    Figured it out. The program that was creating the files was not releasing its threadlock on them. My bad.

  • HDMI - sound and vision

    Two questions please - does HDMI output in dolby digital or uncompressed? & also do I need to run a normal coax cable to my TV if I connect with HDMI as the PDF set up guides implies?
    I have a BOSE system which I would ideally like to route just an HDMI cable to then this would carry sound and vision 5.1 included to my TV?
    Thanks in advance for your help
    Solved!
    Go to Solution.

    The HDMI carries either normal stereo (which may or may not have Dolby Prologic encoding) for standard broadcasts or regular On-Demand content, and Dolby Digital 5.1 for downloaded HD content.
    If you're proposing to route the HDMI to the Bose system and from there to the TV, your Bose will need to be able to insert delay in the audio otherwise it is likely to be 100-200ms ahead of the picture. If instead you are able to take the HDMI to the TV first and then an optical 5.1 audio feed from the TV to the Bose, you could well find that the TV will have already added the audio delay in order to sync with the picture.

Maybe you are looking for