Performance issues with mmr_play() and mmr_stop()

Hello

I am currently working on a game for the platform BB10 and implementing audio. I use the multimedia rendering engine to play a piece of background music in the game, which works fine. My problem is when you try to switch to a music different track run game - which produces a short (but noticeable) stall.

A little more information - my approach is currently single-threaded (I realize that a possible solution is to implement the audio on a separate thread), and when I start a new track I'll simply call mmr_input_attach(), then mmr_play(), which are so expensive that they stall the game.

As I say, I know that a solution would be to switch the audio to another thread, but I was wondering if anyone knew another solution at all? I tried to play the tracks in a playlist and use mmr_seek to move between them, but I still get the same stall. Unfortunately, I was not able to find a lot of information about the inner workings of mmr_play() or mmr_input_attach() or find several forum posts about them, it was difficult to work on what would be my options.

Thanks in advance for any help!

For what it's worth, I managed to get a solution threaded work easily enough, roughly as follows:

void* playMusicOnThread(void* args)
{
    if(mmr_input_attach(musicContext, musicURL(), "autolist")==0)
    {
        // Successful attach, play file
        mmr_play(musicContext());
    }
    else
    {
        // Handle error
    }
    return 0;
}

void MyClass::playMusic(void)
{
    pthread_t pt;
    pthread_attr_t attr;
    pthread_attr_init(&attr);
    pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
    pthread_create(&pt, &attr, &playMusicOnThread, NULL);
    return;
}

I was still interested if anyone knows how to run single-threaded, but this solution is sufficient for my needs anyway.

Tags: BlackBerry Developers

Similar Questions

  • Performance issues with large number of nodes

    I am creating an application to display graphics (large), for example:

    graph.png

    But I ran into some performance issues, even for a relatively small number of nodes in the scene graph (+-2000 in the picture above). The graph is built, step by step, adding circles and paths to a StackPane. Circles and paths can be semi-transparant. For a small number of nodes, I get a solid 60 FPS, but this decreases over time to about 5 frames per second. As soon as I stop adding new nodes, the framerate shoot again up to 60 images per second. The framerate drop even when all the nodes are outside the viewport.

    My questions are:

    * Is Platform.runLater () call to 2000 times a minute too?

    * This might just be a problem with my graphics card? (I have an Intel HD Graphics 3000)
    * JavaFX pulse recorder says such things, are there meaningful information in that I'm missing?

    PULSE: 1287 [163MS:321MS]

    T14 (0 + 0ms): col of CSS

    T14 (0 + 5ms): layout pass

    T14 (6 + 152ms): waiting for the minutes of the previous

    T14 (158 + 0ms): copy the State for graphic rendering

    T12 (159 + 0ms): dirty opts calculated

    T12: Path of the slow form for null

    T12 (159 + 160ms): painted

    T12 (319 + 2ms): Presentable.present

    T12 (321 + 0ms): completed the presentation of painter

    Counters:

    Background image of the region used cached: 14

    NGRegion renderBackgroundShape slow path: 1

    Nodes displayed: 1839

    Nodes visited during rendering: 1840

    Kind regards

    Yuri

    Basically, try some optimization of performance ranging from the simple to the complex.   Each of the changes below may provide you with an increase in performance.  Some will probably increase performance much more that others (depending on where is the real bottleneck).  I would probably start by replace the paths to the lines and reduce the number of Platform.runLater calls (as adding nodes that fall within the viewport can be difficult only).

    > The framerate drop even when all the nodes are outside the viewport.

    Place the nodes in the graph, which fall inside the viewport.

    > Is Platform.runLater () call to 2000 times a minute too?

    Yes, there is no reason to call it more than 60 times a minute when the framerate of JavaFX is capped at 60 frames per second by default.

    > This might just be a problem with my graphics card? (I have an Intel HD Graphics 3000)

    Yes, it's a graphics system relatively low-end.  But, look at the comment of developer below - your CPU and choice of graphic primitives can also affect rendering speed.

    > Adding circles and the paths to a StackPane

    You don't need a StackPane to this, a group is a container easier and probably better.

    > may be semi-transparant

    Remove transparency * may * cause acceleration.

    ----

    You run may be:

    https://JavaFX-JIRA.Kenai.com/browse/RT-20405 : improve the rendering of path performance

    Maybe if you use lines rather than the paths, performance might improve.

    A comment by a developer on this performance tweak application is:

    «It is quite normal for applications that use arbitrary paths (if the node path objects, SVGPath, polyline, or polygon) because these paths are rendered in software.» As card circle, Ellipse, line and Rectangle very primitive forms easily to the operations that can be performed entirely on the GPU, which makes them essentially cheap. There is no need to compare the rendering of a complicated shape for rendering of simple primitives for this reason. »

    ----

    Setting the cache indicators can help, but probably only if you animate nodes.

    ----

    Present level of detail of your graph functionality so a chart with zoom out is not make as many nodes as a part of zoomed in.

    ----

    You run any code important calculation on the JavaFX application thread that could stall it?

    Can make you available a ftom so that others can reproduce your problems?

  • Performance issues with Photoshop CS6 64-Bit

    Hello-

    Issue at hand: in recent weeks, I noticed significant problems with performance since the last update PS CS6 using the Adobe Application Manager, from the unexpected shut downs to bring my computer to a crawl (literally, my cursor seems to crawl on my screens). I'm curious to know if anyone knows these issues, or if there is a solution I have not yet tried. Here is a list of actions that give rise to these performance issues - there are probably more that I have not experienced due to my frustration, or were not documented as occurring several times:

    • Opening files - results by hanging processes, takes 3-10 seconds to solve
    • Paste from the Clipboard - results by hanging processes, takes 3-10 seconds to solve
    • Saving files - takes 3-10 seconds to open the dialog box, another 3 to 10 seconds to return to the normal window (saving an image PNG compressed)
    • The eyedropper tool - will crash Photoshop on the desktop, or take 5 to 15 seconds to load
    • Try to navigate any menu - Photoshop crash on the office or take 5 to 15 seconds to load

    Attempts I took to solve this issue, which failed:

    • Uninstalled all fonts I have added since the last update (it's a pain in the *, thanks to be glitch Windows Explorer)
    • Uninstall and reinstall the application
    • Edition 32-bit use
    • Change process priority to above normal
    • Confirm the process for all available cores of the processor affinity
    • Change the configuration of the performance of Photoshop options
      • 61% of memory is available to Photoshop to use (8969 MB)
      • History States: 20; Cache levels: 6; Tile cache size: 1024K
      • Records of work: active on the production of SSD, ~ 10GB of available space
      • Dedicated graphics processor is selected (2 x nVidia cards in SLI)

    System information:

    • Intel i7 2600 K @ 3.40 GHz
    • 16 GB of RAM Dual Channel DDR3 memory
    • 2 x nVidia GeForce GTS 450 cards, 1 GB each
    • Windows 7 Professional 64 bit
    • Adobe Creative Cloud

    This problem is cost me time that I work every day, and I'm about to start looking for alternatives and cancel my subscription if I can't get this resolved.

    Have you tried to restore your preferences to set the parameters of performance return to their default values and restart Photoshop? http://blogs.Adobe.com/Crawlspace/2012/07/Photoshop-basic-troubleshooting-steps-to-fix-MOS t - issues.html #Preferences

  • Performance issue with the submodels

    Hello
    I'm working on submodels and my requirement needs only one main calling location several specific submodels (a location may have several own submodels, e.g.: US_subtemp1, US_subtemp2, US_subtemp3... in the same way to other locations).
    I would like to know is there any performance issue associated with calls in the submodels and on how this decrease in performance can be minimized.

    Kind regards
    Arvind

    Use of the submodels with components imported alongside repeated sections in the main template layout is not recommended when the number of repetitions is high and the size of the document is large. BI Publisher optimize the xsl transformation internally, but it is not applied to xsl inside models of void.
    One of the extreme scenario is a main model set only a repeating section that matter a submodel of the header and the footer.
    A body of the repeating section is defined in the subtemplate. In this scenario, there is no xsl optimization made and you can easily see some differences in performance.

    As long as you don't need to repeat the layouts of submodels, you don't need to worry about this performance issue.

    Thank you
    Shinji

  • Performance issue with an external HARD drive

    Hi all

    I wish you all a happy new year and good luck for 2008

    I have a performance problem with a HARD drive: 3.5 inch USB 2.0 HDD with Alu - case. (320 GB of capacity)
    The average copy files is about 470 KB/Sec.

    When I connect the external HARD drive to my laptop (for any USB port), I have a ToolTip message: "this device can perform faster - this USB device can be faster if you connect it to a USB 2.0 port. I can assure you, my computer laptop USB USB 2.0 port.

    I conneted my drive external HARD to both PC and I have the same ToolTip message: "this device can perform faster - this USB device can be faster if you connect it to a USB 2.0 port.

    Is this problem known to you?
    I think the problem is in the firmware of the external HARD drive.

    + Other ++ information: +.

    + OS: Windows XP Pro SP2 +.
    + USB port all tested are USB 2.0 +.
    + HARD drive divided on 4 logical drives.
    + Antivirus: Symantec. I had test with and without my antivirus. +
    + I have had this problem for 3 weeks and before that I had no problem. +

    Thanks in advance & best regards,
    Marouane

    Hello

    I got the same info after the connection of a digital camera.
    The same message appears in the taskbar. I simply disbled this message;
    In Device Manager, click the USB host controller, click the Advanced tab, and then check the box at the bottom of the window that says don't tell me about USB errors.

    You must do this for each USB controller listed under USB in Device Manager, so that the error message no no matter which controller is used.

    I goggled for this + this device can perform faster + and got many successes. It seems that this is not a hardware problem, but simply a problem of operating system software

    That s all I can suggest

  • issue with tables and clusters

    Hello

    Another issue with the tables and clusters. I have three engines thatI move on XYZ and then measure something. I need to draw on the 3D, the result of the measurement. How to draw real XYZ and not the index of the data table positions? (I can't actully how to build the matrices 2D forX, Y and Z). In the figures, I give an example of what I need.

    Concerning

    You have to break the data out of the cluster and to present them to the graph 3d to a separate bays for X, Y, Z and W where 'W' is your values measured at the locations described by X, Y, Z.

    This thread shows how trace readings in space 3. The following image shows the data that the original author wanted to draw.

    Have fun

    Ben

  • Performance issue with multiple jumps of FCoE

    At at - it implemented FCoE multihop on the new firmware 2.1? I moved my UCS lab he and storage performance stagnated. Here's what I have in my lab.

    2 nexus 5500 s - used for LAN and FC switch

    EMC CX4-120 - connected to the 5500 s Nexus 2

    UCS 6120/FEX 2104 - Pre-FCoE to installation has been a port-channel 2 SAN ports in every tissue of the Nexus 5ks.

    6 servers B200 M1

    ESXi 5

    I wired to the top a twinax addition on a fabric of interconnection to 5548 Nexus in FC fabric

    I wired to the top a twinax addition on interconnection fabric Nexus 5548 FC fabric b B

    Configured interfaces such as FCoE uplink in UCS

    Placed the FCoE interfaces in the proper VSAN

    A tissue at the same time, I have disabled port-channel SAN FC to force the vHBAs to connect to the uplink of FCoE. Didn't have any problems with this and vHBAs appeared in the table flogi to the couple of 5ks on the interface correct vfc.

    Reloaded my ESXi (SAN boot) hosts and guests restarted very well using uplink of FCoE to Nexus 5ks.

    When I turned on a virtual machine, it took more than 20 minutes for it to start and he was to the point where it was usable.

    No drops or errors on the FCoE interfaces or the fabric of interconnections vfc and Nexus 5ks.

    As soon as I have reactivated the CF port-channel SAN using 4 GB SFP modules and disable the performance of uplink FCoE was fine again.

    I hope that it is something to do with the older hardware of the generation 1 6100 s and the IOM s 2100 and not a bug.

    I have 2 other servers HP rack mount with CNAs Qlogic FCoE on the VMFS LUNS even without any problem.

    Case ID: 624922297

    The Nexus switches as well as technical support UCSM are attached.

  • Performance issue with select only one option

    Hello

    We have performance problems with the selected component to a choice that we use on our page. As soon as I have one in the drop-down list select downwards, it displays a "BUSY" icon Here is the code of the component I have on my jsff.
    <af:selectOneChoice id="socInterval" label="Interval"
                                                  value="#{pageFlowScope.usageMB.selectUsageTrend}"
                                                  autoSubmit="true">   
                                <f:selectItem id="si023" itemLabel="Hourly"
                                              itemValue="Hourly"/>
                                <f:selectItem id="si123" itemLabel="Daily"
                                              itemValue="Daily"/>
                                <f:selectItem id="si112" itemLabel="Weekly"
                                              itemValue="Weekly"/>
                                <f:selectItem id="si113" itemLabel="Monthly"
                                              itemValue="Monthly"/>
                                <f:selectItem id="si1123" itemLabel="Yearly"
                                              itemValue="Yearly"/>
                              </af:selectOneChoice>
    Please let me know if you have any suggestions.

    Thank you and best regards,
    Kiran

    Why meet autoSubmit = "true" for the component?
    Are you doing any treatment/PPR on the same? This can cause the problem.

    Thank you
    Nini

  • Database update issue with JavaScript and local storage

    Hi all

    I come from a PHP background and a newbie with HTML5 and JavaScript, and local storage


    Currently I'm building a mobile web application that uses a remote database.

    I have a question about the update database.

    Currently, I set it up so that when the user logs on successfully - Local Storage fields are loaded from the remote database query using a jQuery.Get. This seems to work well.

    When it's time to update the data, I fill the form in local storage, allow the user edit fields, then:

    -a form post to send data to the remote php page that updates the database...

    Here is where I have a question: How can I make sure the edit went through good - what is better to do it now?

    -Can I set up a json response to say whether or not the update was successful

    or

    -Query the database once more and recover the fields to compare the edit results

    or

    -Another technique to do of course change it went through OK

    - then if successful, I can update the local storage

    Q: what is the best way to ensure that the database has been correctly updated (and also not lose time with Access database useless)?

    Is there a recommended for this?

    In addition, if possible this beginner can use a clear example...

    Why not to use jquery get () callback status where if the success is returned then to update local storage?

    best,

    Shocker

  • Windows Vista and especially performance issue with M/B AsRock P4i45GV R5.0

    4 years ago, I bought AsRock P4i45GV-M/B 5.0 R, with Intel Pentium 4 processor with 2.40 GHz, 1 MB of L2 Cache.

    I have installed Windows Vista, since Intel 82845 G onbaord graphics does not support Windows Vista, I havd to installed an add - in AGP card. I installed NVIDIA GeForce FX 5500 and I also tried NVIDIA GeForce FX 5200, but my system does not at all. It's really slow.

    Is this due to add - on card AGP?

    I installed 2 GB of RAM, which is the maximum amount of RAM my M/B can support.

    I also tried with Windows 7, but it works worse than Windows Vista on my PC.

    Please, help me to boost the performance of my system. I don't want to go back to Windows XP.

    The problem may be because my M/B does not support Windows Vista and higher?

    Rannvijay Kapoor

    The processor and the graphcis card are old and not the fastest.

    Buy a new basic system of AMD (Athlon II X 2/X 3, at least 2 GB of DDR3 RAM, a mainbaord with AMD 880 G chipset (integrated graphics card), you can use the old HARD disc), it is not too expensive, but gives you a boost huge performance.
    "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • Performance issue with the query when join OKS and tables of the IB

    Hello

    I'm developing an integration for the automation of RMA through repair. The type of repair order is based on the details of the guarantee. This check must be made for each record.

    Request for detailed below, I wrote, but it of a long way and slows down my program. Without this validation, it works perfectly.

    The problem is the join of tables with OKS IB, he kills performance. I also try to my side,

    any suggestion or help is appreciated. Here's the query in the program:

    SELECT DISTINCT (TYPE |) '-' || service | '-' || status)

    IN v_war_details

    FROM (SELECT TO_NUMBER (linesb.line_number) line,

    DECODE

    (fnd_profile. VALUE

    ('OKS_LINE_MIRR_NAME_OR_DESC'),

    'DISPLAY_NAME', sysitems.concatenated_segments,

    "DISPLAY_DESC", sysitems.description

    ) service.

    linestyletl.NAME TYPE,

    status of ststl.meaning,

    start_date linesb.start_date,

    linesb.end_date end_date,

    oks_misc_util_web.duration_period

    (linesb.start_date,

    linesb.end_date

    ) DURATION OF,.

    TimeUnit.unit_of_measure_tl period

    Of okc_k_lines_b linesb,.

    okc_k_lines_tl linestl,

    okc_line_styles_b linestyleb,

    okc_line_styles_tl linestyletl,

    okc_k_headers_all_b hdr,

    oks_k_lines_b slines,

    okc_k_items kitems,

    mtl_system_items_b1_kfv sysitems,

    okc_statuses_b stsb,

    okc_statuses_tl ststl,

    mtl_units_of_measure_tl timeunit,

    okc_lookups_v rentype,

    Glu mtl_units_of_measure_tl

    WHERE linesb.cle_id IS NULL

    AND linesb.ID = linestl.ID

    AND linestl. LANGUAGE = USERENV ("LANG")

    AND linesb.lse_id = linestyleb.ID

    AND linesb.lse_id (1, 12, 14, 19, 46)

    AND linestyleb.ID = linestyletl.ID

    AND linestyletl. LANGUAGE = USERENV ("LANG")

    AND linesb.chr_id = hdr.ID

    AND linesb.ID = slines.cle_id

    AND linesb.ID = kitems.cle_id

    AND kitems.object1_id1 =

    SysItems.inventory_item_id

    AND kitems.object1_id2 =

    SysItems.organization_id

    AND kitems.uom_code = uom.uom_code (+)

    AND unit of measure. LANGUAGE (+) = USERENV ("LANG")

    AND linesb.sts_code = stsb.code

    AND stsb.code = ststl.code

    AND ststl. LANGUAGE = USERENV ("LANG")

    AND timeunit.uom_code =

    oks_misc_util_web.duration_unit

    (linesb.start_date,

    linesb.end_date

    )

    AND timeunit. LANGUAGE = USERENV ("LANG")

    AND linesb.line_renewal_type_code = rentype.lookup_code (+)

    AND rentype.lookup_type (+) =

    'OKC_LINE_RENEWAL_TYPE '.

    AND (IN) hdr.ID

    SELECT kh.ID

    Of okc_k_headers_all_b kh.

    okc_k_lines_b kl,

    Ki okc_k_items,

    okc_line_styles_v ks,

    csi_item_instances c,

    mtl_system_items_b I have

    WHERE kh.org_id = p_org_id

    AND c.instance_id = p_instance_id

    AND c.serial_number = p_serial_num

    AND i.inventory_item_id =

    p_inventory_item_id

    AND kh.contract_number_modifier IS NULL

    -can be filled

    AND kh.ID = kl.dnz_chr_id

    AND kh.ID = ki.dnz_chr_id

    AND kl.ID = ki.cle_id

    AND kl.lse_id = ks.ID

    AND IN ki.jtot_object1_code

    ("OKX_CUSTPROD")

    AND c.last_vld_organization_id =

    i.organization_id

    AND TO_NUMBER (ki.object1_id1) =

    c.INSTANCE_ID

    AND c.inventory_item_id =

    i.inventory_item_id))

    Service = 'GUARANTEE '.

    AND TRUNC (SYSDATE) BETWEEN start_date AND end_date;

    Not sure where it would be so I put it in the section SQL/PLSQL.

    Kind regards

    Prashant

    Found the solution

    AND TO_NUMBER (ki.object1_id1) = c.instance_id

    replaced by to_char (c.instance_id) = ki.object1_id1 AND

  • Performance issues with Photoshop CC and iMac 5 k

    I have recently bought an iMac with 5 k Retina display and photoshop CC is trolling - especially when doing any options of selective color, curves, levels, etc.   I am a photographer and desperately need to Photoshop CC to run effectively.    Are there options for me who don't understand resume my new iMac to the store and stick with the PC?

    Many people, I think I solved the problem in 3 ways. Not sure that one was the winner then try them one at a time.

    1. I upgraded to El Capitan

    2. I checked (open in low resolution) within the cc Photoshop app.

    3. go to preferences in Photoshop, select performance, then change the basic design mode.

  • Performance issues with built-in security and ODP

    Hello

    During the performance test for opening a database connection, I noticed that there is a problem of performace huge when using externally identified users and ODP with Oracle 11.1.0.6 client and .net 3.5. The test runs 30 times slower with an external user identified compared to a database of identified user.

    I also noticed that System.Data.OracleClient does not lead to alterations in the significant performance for users of database identified outside vs.

    The test environment is Vista 64 and VS2008 and I see no significant difference by using 32-bit vs 64-bit Oracle client.

    Is this a known problem and is - it a solution for this?

    Kind regards
    Oyvind

    It just occurred to me that you are on x 64. If you use 64-bit software, you need to apply 11107 RDBMS patch to the client because there are currently no group ODAC 11106.20 for x 64, but patch 11107 customer will give the same functionality that is in ODAC 11106.21.

  • Flickr API and cflickr - performance issue with my code.

    I use cflickr to access the api of Flickr and view photos in a lightbox. My code is functional, but incredibly slow. I guess I go about it in an improper way and hoping that someone can point out a better way to do what I'm trying to accomplish. My speed problems develop when I try to extract the descriptions of images within a loop that is show the pictures on the page.

    Here is an example of the code that I use:

    using the following to enter photos:

    < cfset photos = cflickr.photosets_getPhotos (photoset_id = 72157624340881708, auth_token = token) / >

    I then use the following for loop through the array of photos and and also to retrieve the description for each image.

    < div style = "width: 423px; margin: auto; "id = 'Gallery' >
    < = cfloop '1' to = "#arraylen (photos.photoset.photo) ' # ' index 'i' = >"
    < cfset = photos.photoset.photo [i] p / >
    < cfset img_desc = cflickr.photos_getInfo (photo_id = p.id).photo.description / >
    < cfset img_desc = replace (img_desc, 'TRAVEL', ' < br / > TRIP ') / >
    < cfset title photos.photoset.photo [i] .title = / >
    < cfset title = title & "< br / >" & img_desc / >
    < cfoutput >
    < a href = "#cflickr.getPhotoUrl(p, '')" # "title =" #title #"> < img src =" #cflickr.getPhotoUrl(p, 's') # "/ > < / has >.
    < / cfoutput >
    < / cfloop >
    < / div >

    The problem with the code is when it applied for the img_desc inside the loop to the api of Flickr. Each instance of this call takes an average of 300 to 400 MS and the table has more than 300 points, so it times out. I would retrieve all image descriptions at once before the loop and if so, how much better would connect these with the image data that they belong with? It seems that I go about it rather inefficiently.

    I was hoping that I could call a function that pulls all the data I need in a single call, but so far, I've been unable to conclude that.

    (Grrr... this forum trashes e-mail better than any application I have ever seen.)  Here's what my previous answer said in fact...)

    I can't say that I used it. But the use of cfc seems to follow very closely the API . So, I took a glance on flickr forums, and someone suggests that you can retrieve descriptions too by adding the parameter 'extras '.

    http://www.Flickr.com/groups/API/discuss/72157594456853637/#comment72157623785775034

    So try using:
       
    auth_token = token, options = "description") >

  • Performance issues with dynamic action (PL/SQL)

    Hello!


    I have problems of perfomance with dynamic action that is triggered on click of a button.

    I have 5 drop-down lists to select the columns that users want filter, 5 drop-down lists to select an operation and 5 boxes of input values.

    After that, it has a filter button that submits just the page based on the selected filters.

    This part works fine, the data are filtered almost instantly.

    After that, I have 3 selectors 3 boxes where users put the values they wish to update the filtered rows and column

    There is a update button that calls the dynamic action (a procedure which is written below).

    It should be in a straight line, the issue of performance might be the decoding section, because I need to cover the case when the user wants to set a null (@), and when it won't update the 3 columns, but less (he leaves ").

    That's why P99_X_UC1 | ' = decode(' ||) P99_X_UV1 |', "«,» | P99_X_UC1 ||',''@'',null,'|| P99_X_UV1 |')

    However, when I click finally on the button update, my browser freezes and nothing happens on the table.

    Can anyone help me solve this problem and improve the speed of the update?

    Kind regards

    Ivan

    PS The procedure code is below:

    create or replace

    DWP PROCEDURE. PROC_UPD

    (P99_X_UC1 in VARCHAR2,

    P99_X_UV1 in VARCHAR2,

    P99_X_UC2 in VARCHAR2,

    P99_X_UV2 in VARCHAR2,

    P99_X_UC3 in VARCHAR2,

    P99_X_UV3 in VARCHAR2,

    P99_X_COL in VARCHAR2,

    P99_X_O in VARCHAR2,

    P99_X_V in VARCHAR2,

    P99_X_COL2 in VARCHAR2,

    P99_X_O2 in VARCHAR2,

    P99_X_V2 in VARCHAR2,

    P99_X_COL3 in VARCHAR2,

    P99_X_O3 in VARCHAR2,

    P99_X_V3 in VARCHAR2,

    P99_X_COL4 in VARCHAR2,

    P99_X_O4 in VARCHAR2,

    P99_X_V4 in VARCHAR2,

    P99_X_COL5 in VARCHAR2,

    P99_X_O5 in VARCHAR2,

    P99_X_V5 in VARCHAR2,

    P99_X_CD in VARCHAR2,

    P99_X_VD in VARCHAR2

    ) IS

    l_sql_stmt varchar2 (32600);

    nom_table_p varchar2 (30): = ' DWP. IZV_SLOG_DET';

    BEGIN

    l_sql_stmt: = "update". nom_table_p | 'set '.

    || P99_X_UC1 | ' = decode(' ||) P99_X_UV1 |', "«,» | P99_X_UC1 ||',''@'',null,'|| P99_X_UV1 |'),'

    || P99_X_UC2 | ' = decode(' ||) P99_X_UV2 |', "«,» | P99_X_UC2 ||',''@'',null,'|| P99_X_UV2 |'),'

    || P99_X_UC3 | ' = decode(' ||) P99_X_UV3 |', "«,» | P99_X_UC3 ||',''@'',null,'|| P99_X_UV3 |') where ' |

    P99_X_COL | » '|| P99_X_O | » ' || P99_X_V | «and» |

    P99_X_COL2 | » '|| P99_X_O2 | » ' || P99_X_V2 | «and» |

    P99_X_COL3 | » '|| P99_X_O3 | » ' || P99_X_V3 | «and» |

    P99_X_COL4 | » '|| P99_X_O4 | » ' || P99_X_V4 | «and» |

    P99_X_COL5 | » '|| P99_X_O5 | » ' || P99_X_V5 | «and» |

    P99_X_CD |       ' = '         || P99_X_VD;

    -dbms_output.put_line (l_sql_stmt);

    EXECUTE IMMEDIATE l_sql_stmt;

    END;

    Hello Ivan,.

    I don't think that the decoding is relevant performance. Perhaps the update is suspended because another transaction has changes that are uncommitted to any of the affected rows or where clause is not quite selective and has a huge amount of documents to update.

    In addition - and I may be wrong, because I only have a portion of your app - the code here looks like you've got a guy here huge sql injection vulnerability. Perhaps you should consider re - write your logic in the static sql. If this is not possible, you must make sure that the entered user contains only allowed values, for example by P99_X_On white list (i.e. to ensure that they contain only values known as 'is', ')<', ...),="" and="" by="" using="" dbms_assert.enquote_name/enquote_literal="" on="" the="" other="" p99_x_nnn="">

    Kind regards

    Christian

Maybe you are looking for

  • My App store won't download anything!

    My app store won't download anything, it shows me an error with "the network connection has been lost." but I'm connected to the internet and you can perform a search in the app store! This error indicates that when I try to download an application.

  • Can ' t download the Adobe plugin. Manual to try it, but he said only one instance?

    Recently had my computer is restored state; lost things & other dubious. Biggest problem: can't see sites such as, for example, full episodes of Jon Stewart, National Geographic, etc. Tried and tried and tried making d/l those Jefferson sites demandi

  • Error of current password with my compaq mini

    Hello I have a Compaq mini 110 who crashes at startup and wrote Enter the current password now: After 3 entries, it stops with the [number of Series edited by Moderator]Please help me. Thank you.

  • Vista Premium fails to start on Dell 1525

    My dell 1525 was able to start a few days ago and I went through the recovery procedure and tried starting fix and he found nothing wrong.   but cannot start. Then I did the restore and it gave me aretablir point on which I used and it worked. Howeve

  • where to buy HP ENVY m6-1255eo replacement keyboard

    Where can I buy a keyboard replacement for my m6-1255eo HP ENVY laptop?