Tips on improving the performance

Hello

I have a table that contains data for the last 5 min, maximum (500 lines), this table is in NOLOGGING mode.

I have another process that get these data every 5 minutes and then remove each row in this table.

As my table is in NOLOGGING mode I was questioning myself if this better to TRUNCATE the table or DELETE all ranks.

I did a trace to see the result, but I'm not sure of the conclusion:

truncate table

call the query of disc elapsed to cpu count current lines

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        1      0.00       0.00          0          0          0           0

Run 1 0.00 1.40 12 3 238 0

Fetch        0      0.00       0.00          0          0          0           0

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Total 2 0.01 1.40 12 3 238 0

Chess in the library during parsing cache: 1

Optimizer mode: ALL_ROWS

The analysis of the user id: SYS

Elapsed time are waiting on the following events:

Event waited on times max wait for the Total WHEREAS

----------------------------------------   Waited  ----------  ------------

DB file sequential read 12 0.00 0.00

ENQ: RO - fast object reuse 3 0.26 0.42

local writing wait 7 0.50 0.24

reliable message 1 0.00 0.00

Journal of synchronization of file 1 0.04 0.04

SQL * Net message to client 1 0.00 0.00

SQL * Net client message 1 0.00 0.00

delete

call the query of disc elapsed to cpu count current lines

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        1      0.00       0.00          0          0          0           0

Run 1 0.00 129 263 566 134 0.12

Fetch        0      0.00       0.00          0          0          0           0

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Total 2 0.00 0.12 129 263 566 134

Chess in the library during parsing cache: 1

Optimizer mode: ALL_ROWS

The analysis of the user id: SYS

Caught plan statistics number: 1

Ranks (1) operation of line Source lines (avg) lines (max)

---------- ---------- ----------  ---------------------------------------------------

0 0 0 ASH_DATA DELETE (cr = 263 pr = 129 pw = time 0 = 125014 en)

134 134 134 TABLE ACCESS FULL ASH_DATA (cr = 263 pr = 129 pw = time 0 = 2738 US cost = 37243 size = card 6420 = 321)

Elapsed time are waiting on the following events:

Event waited on times max wait for the Total WHEREAS

----------------------------------------   Waited  ----------  ------------

db file scattered read 17 0.11 0.11

SQL * Net message to client 1 0.00 0.00

SQL * Net client message 1 0.00 0.00

Thank you

Cyrille

@rp0428 I have no control over this, if you have a suggestion, I'm very open minded

, Thanks for the STORAGEclause of RE-USE, I'll have a look.

The button Delete and truncate made with about 130 lines each, at the exit, it seems that the truncation is longer but consumes less resources.

Ask yourself that question 'control transaction' is a more important than potential problem on.

I followed the basic rule is: if it ain't broke, don't fix it.

You have not posted ANY reason to believe that you still have a problem.

Until you really have a problem to choose a solution and move.

As it has already menntioned AND TRONQUER LOADING/RELOADING operations

1. is evolutionary movement

2 are performing travel as the amount of data increases

3. use fewer resources (undo, redo, memory) as the amount of data increases

The above is particularly true for the use case that can benefit from the RE-USE of STORAGE clause such as batch jobs which tend to use about the same amount of tablespace.

Tags: Database

Similar Questions

  • New user - need tips to improve the performance and graphics ability

    Hello

    I am a new user.  I loaded Windows 7 64-bit today, and it seems to work fine. (I used only Explorer.) I downloaded by Reallusion CrazyTalk and software is lagging terribly, and the image is blurry. The Forum of CrazyTalk, they recommend updating graphics drivers to fix blurry images. On the NVIDIA site, when I asked her to automatically detect the driver update, it says none is available for my computer (my Mac).

    Question: They have updates driver for Windows... When I am running Windows via Fusion, should I different graphics drivers than those on my Mac?  If so, means that I need another graphics card?  * Of course I'm not super technical. **

    I have attached a screenshot of my info/display of charts:

    In addition, molten, I increased the RAM to 3 GB (3000 MB), but it has not improved the situation.

    CrazyTalk allows the user to make a photo 'talk '... It is lively and contains the audio.  I usually save files as uncompressed reviews that are about 4 GB in size (when I worked directly on a PC) but today to test it's obviously "too much" for this system.  (It would have probably been about 2 GB). So I recorded a MP4 (3.7 MB), which has always been a time loooooooong to save - 30 minutes.

    Other info:

    Model name: iMac

    Model ID: iMac9, 1

    Processor name: Intel Core 2 Duo

    Processor speed: 3.06 GHz

    Number of processors: 1

    Total number of cores: 2

    L2 Cache: 6 MB

    Memory: 4 GB

    Bus speed: 1.07 GHz

    Boot ROM version: IM91.008D.B08

    Version of the SCM (System): 1.37f3

    I would appreciate advice and links to information that will help me.

    Thank you

    Dora

    TatianaTheDog wrote:

    I am a new user.  I loaded Windows 7 64-bit today, and it seems to work fine. (I used only Explorer.) I downloaded by Reallusion CrazyTalk and software is lagging terribly, and the image is blurry. The Forum of CrazyTalk, they recommend updating graphics drivers to fix blurry images. On the NVIDIA site, when I asked her to automatically detect the driver update, it says none is available for my computer (my Mac).

    Welcome to the Fusion community.

    Question: They have updates driver for Windows... When I am running Windows via Fusion, should I different graphics drivers than those on my Mac?  If so, means that I need another graphics card?

    Your don't need another graphics card.  By necessity, VMware can pass through native graphics of your iMac to any guest including Windows operating system.  VMware provides its own graphic adapter of substitute (WDDM 3D) or VMware SVA II, with its own pilots.  Apple takes care to provide you with the latest drivers for OS X, you will never have to download all the drivers directly from the graphics vendors.  Details about the virtual hardware and its differences of capacity are covered in the FAQs on VMware Fusion

    Regarding the VMware graphics drivers who are in the VMware tools and are supported if you have installed Windows 7 using Windows Easy install feature in the new computer Wizard.  If you do not use Windows Easy Install (or don't remember), the icon of blue squares of VMware in the system tray is a Visual indicator, they are installed.  But you can confirm the video adapter by using the Control Panel, search for display > change display settings > advanced settings to look at your graphics card.  For Win7, the default value is VMware SVGA 3D.

    Whenever you want to refresh the VMware drivers you can select Virtual Machine > install VMware Tools to install or run the option repair after the Welcome screen.

    In addition, molten, I increased the RAM to 3 GB (3000 MB), but it has not improved the situation.

    Based on the requirements of CrazyTalk6 system I could find, you do not need to allocate as much RAM (3 GB).  Depending on your other needs Windows 7, 1 GB to 2 GB would be better, based on your host, the RAM size.

    Pentium IV 2 GHz or higher recommended

    512 MB of RAM or more recommended

    1 GB space drive or higher recommended

    Duplex Sound Card/VGA Card/keyboard/mouse/Microphone/Speaker

    Display resolution: 1024 x 768 or higher

    Video memory: 128 MB RAM or higher recommended

    Windows 7 / Vista / XP SP2

    Internet Explorer 6 or higher, Firefox 2 or higher

    DirectX 9 and WMEncoder 9 are required to export WMV

    Recommended hardware:

    CPU dual core or higher recommended

    1 GB of RAM or more recommended

    Hard drive 2 GB or more recommended

    Video memory: 256 MB RAM or higher recommended

    Things to try:

    The 3D Aero interface may impose the virtual graphic adapter, then you could try to disable that by getting the properties of the desktop background, choose Customize and change the theme of Windows 7 Basic.

    More radically, you can stop the virtual machine and disable 3D graphics in the VM > settings > display > uncheck "Accelerate 3D graphics."  This will cause Windows 7 use the legacy VMware SVGA II adapter.  The oldest non - 3D adapter looks like it meets the system requirements but requiring DirectX 9 encoding for WMV exporting.   If you save without video compression, that may be OK.  If the non - 3D adapter does not meet requirements, I am sure that the program will display.

  • Tips to improve the converted machines

    Hello

    I began to convert the Windows Machines and they are a bit slower after the P2V process. Already, I removed all the old material and the VMware Tools installed.

    I would like you to hear some tips to improve the performance of virtual machines converted.

    Thank you!

    Cristiano Botelho

    http://communities.VMware.com/thread/25121

    Wait for this theme on the cleaning of the VM after the P2V conversion.

    StarWind Software R & D

  • How to improve the performance of the Intel X 3100 on Satellite L300

    Hello everyone.

    First of all, I don't know if this is an appropriate place to post this thread here or no, but I would like to share with you the experience relating to the improvement of Intel X 3100 (GMA965).

    As we know, there is no driver is good for this chipset from Intel for the moment, especially on VIsta.
    This improvement is made by editing the registry of Intel driver.

    * Steps: *.
    * 1 * open run (Windows + R)
    * 2 * enter Regedit
    * 3 * open the subfolder: * HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contr ol\Video\ *.
    * 4 * from there you'll see lots of subfolders in video, open each one until you see the folder * 0000 * with + _3DMark03.exe +.
    (For example, my is {HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contr ol\Video\ {B5990899-FBCB-45E1-B0B0 *} and reg DWord _3Dmark03.exe lies in two subfolders * 0000 * and * 0001 *})
    * 5 * in * 0000 * and * 0001 *, create two new * DWORD format: * _software.exe* and * ~ software.exe*, value = 1 (hexadecimal). Here, * software * represents the name of the program you want to accelerate as * _photoshop.exe* and * ~photoshop.exe*
    * 6 * in these files, search for * GFX_Options * and change its value to * 1 *.
    * 7 * restart your computer to activate GFX
    * 8 * repeat step 4 to add more programs you want

    Other updates for the drivers are under developed. However, this method will help you to speed up your computer performance with + heavy + graphical software required. I got double FPS on some software on my Toshiba L300 using this method such as Corel, WarcraftIII and Titan Quest (24-32 fps measurement by Fraps)

    Hope it's useful for everyone.
    Best wishes

    Hi Luong Phan

    Thanks a lot for the details and this great instruction.

    I also found this thread. It s your ;)

    + Improve the performance of Satellite L300 graphics software and games-Vista +.
    http://forums.computers.Toshiba-Europe.com/forums//message.jspa?MessageID=119890#119890

    It s the same statement. I am happy. Thank you

  • How to improve the performance of your computer and free up space.

    Original title: the unwanted temporary files of windows is at the origin of the problems of proformanace

    According to a check of problem: the unwanted files temporary windows could take to improve the performance of your computer and free up space.

    Can anyone help with this simple problem.

    Angelo

    Hi Angelo,.

    1. which edition of Windows are you running?
    Example: Windows 7 Professional 32 bit.
    Please follow the below link to clean unwanted temporary files.
    Delete files using disk cleanup
     
    Microsoft at home.
    Slow PC? Optimize your computer for peak performance
    Make slate: how to remove the unwanted files and programs
     
    I hope this helps.
  • I have the computer laptop dv7 - 7227cl of HP Envy, is there a way to improve the performance of game?

    I have windows 8.1, 8 GB ram, amd quad core 4600 a10 m. Is it possible to increase its performance?

    Hello

    You seem to have pretty good specifications in the laptop.

    Even so, I prefer Intel than AMD processors.
    Try playing in low & medium resolution.

    You can go through this document, it can help you in improving the performance: http://support.hp.com/us-en/document/c03340676

    Thank you

  • How can I improve the performance of my compaq presario V2000, its very slow

    How can I improve the performance of my compaq presario V2000, its very slow!

    According to many things (specifications, you have now installed vs the programs he came originally with programs, etc.)-it may or may not work better that ever he does now.  However, in terms of nothing other than the software and others on the subject - there are some things you can do to optimize performance.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find.  Reboot when necessary.  (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in.  Look for whatever it is you do not know using Google (or ask here.)  You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory.  This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Do some cleaning and dusting off this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 4.5 and 9 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

    Those who can help you discover visually where all space is used.  Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Cleaning the components of update on your WIndows XP computer

    While probably not 100% necessary-, it is probably a good idea at this time to ensure that you continue to get the updates you need.  This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on the root of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing you pouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

    If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end.  This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • Anyone have information about the software to improve the performance of a computer called "MECHANICAL SYSTEM"

    original title: windows xp

    has anyone information about the software to improve the performance of a computer called "MECHANICAL SYSTEM"?

    It is located on the website at WWW.IOLO.COM.

    Maybe someone of expertise of knowledge about this software?   or maybe someone has experience with this product?

    There is a similar product, without the costs?

    DO NOT BUY OR INSTALL "SYSTEM MECHANIC".

    IT will bog your system with errors, which would mean probably a complete restoration of your system.

    Dell recommends and sells it from their technical support group and SHAME on THEM for DOING SO.

    THIS SOFTWARE IS A TRAGEDY IN THE MAKING.

    Go to PC Mag reviews and you will see for yourself that there is a very LOW RATING and under normal conditions, you need software to mess with your registry.

    I know someone who has installed this program and we always try to fix all of the errors generated by mechanical system.

    We did a complete restoration and stil having problem.

    Thus he PURCHASE a CERTAINLY DO NOT GOLD INSTALLER CE PROGRAM.

  • What is the best way to improve the performance of this all-in-one PC?

    What is the best way to improve the performance of this all-in-one PC?

    Thanks in advance.

    David Barrett.

    Here are a few methods:

    • Run msconfig.exe, and then uncheck the startup tasks that you don't need. No matter what you disable, Windows always starts.
    • Use a light virus scanner, for example Microsoft Security Essentials.
    • Replace your magnetic drive with a Solid State Disk (SSD)
  • delete prefetch files - other recommendations to improve the performance of the computer please

    After that I deleted the prefetch folder, use tools online to improve the performance of my computer in Windows 7?

    After that I deleted the prefetch folder, use tools online to improve the performance of my computer in Windows 7?

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-performance/does-deleting-the-contents-of-a-prefetch-folder/1b9d4ab7-B553-4990-881c-5702ad724d8d

  • Whenever I try to evaluate and improve the performance of the computer, I get a type of white blue screen telling me I have bad software or hardware and my computer does climb?

    Whenever I try to evaluate and improve the performance of the computer, I get a type of white blue screen telling me I have bad software or hardware and my computer does climb? He did NOT finish the task is content to any screen blue screen saying it's bad it's bad, your computer is messed up bigtime, so-to-speak

    Hi Cynthia,.

    1 have you ever done any hardware or software changes to the PC?

    2. What is the brand and model of the PC?

    3. What is the full error you get when you try to evaluate the computer?

    Audit of the statues of the device in the Device Manager.
    a. click the Start button, type devmgmt.msc and press ENTER.
    b. check for any exclaimation mark and the status of the devices.

    Follow these methods.

    I suggest you to first run the resolution of performance problems.

    Method 1: Open the resolution of Performance problems
    http://Windows.Microsoft.com/en-in/Windows7/open-the-performance-Troubleshooter

    Method 2: Disconnect non-essential external devices and try to evaluate the computer.

    Method 3:  Also, temporarily disable the antivirus and check the question.  Anti-virus programs are sometimes called causes this problem.

    Turn off the Antivirus software
    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software
    Note: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    Let us know if it helps. If the problem persists, please answer, we will be happy to help you.

  • I need to improve the performance of a Web site and I want to track the total number of requests per second...

    I need to improve the performance of a Web site and I want to track the total number of requests per second... we are currently hitting...

    Please I need to hit the current with 1200 queries/second application, please help in this regard.

    Hi Nivask,

    If you created the Web site, the question would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums for assistance:

    Internet Explorer Web development

  • Improving the performance of OLAP in Oracle Database 11

    Hi all

    First of all sorry for a very generic question, lately I been faced with some problems of performance during the generation cubes

    for example we had a problem of low SGA_memory, now we have referred questions to Doc-ID 1464064.1

    to cut short-we have a list of things to look for in advance for OLAP can improve performance?

    similar to the one mentioned in a blog post (improving the performance of OLAP in Oracle Database 10 g Release 1) which is for 10 g

    we ORDM DW, which has the dimension of TIME based with about 10 k records sometimes, that it takes about 20 minutes to build recently its not not building at all throwing error mentioned Doc-ID 1464064.1 I have a wip SR to even SR 3-9620792761

    Similarly, we produced Sun with approximately 9million records sometimes he finished in 4 hours sometimes it ends quite

    I have twice fallen & recreated workspace that helps a little but does not appear inconsistent.

    Pointers would be really useful

    Thank you

    Prateek

    You can update following anonymous pl/sql block and change in your

    specific information for the name of the cube and measure names. You

    can add more steps as you like following the same convention of xml.

    DECLARE

    CLOB xmlCLOB;

    tmp varchar2 (4000);

    BEGIN

    DBMS_LOB.CREATETEMPORARY (xmlCLOB, true);

    DBMS_LOB. Open (xmlCLOB, DBMS_LOB. LOB_READWRITE);

    tmp: ='

    ';

    DBMS_LOB. WriteAppend (xmlCLOB, length (tmp), tmp);

    dbms_cube.import_xml (xmlClob);

    DBMS_LOB. Close (xmlClob);

    END;

  • Improve the performance of processing image javaFx

    Hello

    I'm working on Image processing with javaFx. I think my code isn't effective favorite (with pictures HD, refresh is very slow). Because I am doing a 'for' on each pixel of my image every time I have to refresh it. But I don't know how else to do.

    So I need help to improve the performance of my treatment.

    This is my code:

    import javafx.application.Application;
    import jvafx.beans.InvalidationListener;
    import javafx.beans.Observable;
    import javafx.beans.property.DoubleProperty;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.control.Slider;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.PixelReader;
    import javafx.scene.image.PixelWriter;
    import javafx.scene.image.WritableImage;
    import javafx.scene.layout.AnchorPane;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
        
    public class Example extends Application {
    
        private Image src;
        private WritableImage dest;
        private int width;
        private int height;
         int value = 0;
    
        @Override
        public void start(Stage stage) {
            AnchorPane root = new AnchorPane();
            initImage(root);
            Scene scene = new Scene(root);
            stage.setTitle("Demo processing");
            stage.setResizable(false);
            stage.setScene(scene);
            stage.show();
        }
    
        private void initImage(AnchorPane root) {
            src = new Image(
                    "http://mikecann.co.uk/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-10-19.41-1024x484.jpg");
            width = (int) src.getWidth();
            height = (int) src.getHeight();
            root.setPrefSize(800, 800 + 50);
            ScrollPane scrollPane = new ScrollPane();
            scrollPane.setPrefHeight(600);
            scrollPane.setPrefWidth(1000);
            dest = new WritableImage(width, height);
            ImageView destView = new ImageView(dest);
    
            scrollPane.setContent(destView);
    
            root.getChildren().add(scrollPane);
            AnchorPane.setTopAnchor(scrollPane, 0.0);
    
            Slider slider = new Slider(0, 255, 1);
            slider.setPrefSize(800, 50);
            slider.setShowTickLabels(true);
            slider.setShowTickMarks(true);
            slider.setSnapToTicks(true);
            slider.setMajorTickUnit(1.0);
            slider.setMinorTickCount(0);
            slider.setLayoutY(700);
            slider.valueProperty().addListener(new InvalidationListener() {
                @Override
                public void invalidated(Observable o) {
                    value = (int) ((DoubleProperty) o).get();
                    color();
                }
            });
            root.getChildren().add(slider);
            color();
        }
    
        private void color() {
            PixelReader reader = src.getPixelReader();
            PixelWriter writer = dest.getPixelWriter();
            for (int x = 0; x < width; x++) {
                for (int y = 0; y < height; y++) {
                    Color color = reader.getColor(x, y);
                    double red = (double) value * x * y / (width * height) / 255;
                    double green = color.getGreen();
                    double blue = (double) value * ((width * height) - x * y)
                            / (width * height) / 255;
                        writer.setColor(x, y, Color.color(red, green, blue));
                    }
                }
            }
    
            public static void main(String[] args) {
                launch(args);
            }
        }
    

    And that's with full HD picture:

                src = new Image(
                    "http://www.freedomwallpaper.com//nature-wallpaper-hd/hd_sunshine_hd.jpg");
    

    As you change each pixel independently, there really is no other way than to use a loop through the pixels. Working directly with the pixel data, rather than use setColor and getColor (...) (...) seems to give some performance enhancements. And there are some general performance enhancements, you can use (reorder the loops, calculate the value used repeatedly, etc.). The performance of this version seems acceptable on my system:

    import javafx.application.Application;
    import javafx.beans.InvalidationListener;
    import javafx.beans.Observable;
    import javafx.beans.property.DoubleProperty;
    import javafx.scene.Scene;
    import javafx.scene.control.ScrollPane;
    import javafx.scene.control.Slider;
    import javafx.scene.image.Image;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.PixelFormat;
    import javafx.scene.image.PixelWriter;
    import javafx.scene.image.WritableImage;
    import javafx.scene.layout.AnchorPane;
    import javafx.stage.Stage; 
    
    public class ImageProcessingExample extends Application { 
    
        @Override
        public void start(Stage stage) {
            AnchorPane root = new AnchorPane();
            initImage(root);
            Scene scene = new Scene(root);
            stage.setTitle("Demo processing");
            stage.setResizable(false);
            stage.setScene(scene);
            stage.show();
        }
        private void initImage(AnchorPane root) {
    //        Image src = new Image(
    //                "http://mikecann.co.uk/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-10-19.41-1024x484.jpg");
            Image src = new Image(
                    "http://www.freedomwallpaper.com//nature-wallpaper-hd/hd_sunshine_hd.jpg");
            int width = (int) src.getWidth();
            int height = (int) src.getHeight(); 
    
            int[] srcPixels = new int[width*height];
    
            src.getPixelReader().getPixels(0, 0, width, height, PixelFormat.getIntArgbPreInstance(), srcPixels, 0, width);
    
            root.setPrefSize(800, 800 + 50);
            ScrollPane scrollPane = new ScrollPane();
            scrollPane.setPrefHeight(600);
            scrollPane.setPrefWidth(1000);
            WritableImage dest = new WritableImage(width, height);
            PixelWriter pixWriter = dest.getPixelWriter();
    
            ImageView destView = new ImageView(dest);
            scrollPane.setContent(destView);
            root.getChildren().add(scrollPane);
            AnchorPane.setTopAnchor(scrollPane, 0.0);
            Slider slider = new Slider(0, 255, 1);
            slider.setPrefSize(800, 50);
            slider.setShowTickLabels(true);
            slider.setShowTickMarks(true);
            slider.setSnapToTicks(true);
            slider.setMajorTickUnit(1.0);
            slider.setMinorTickCount(0);
            slider.setLayoutY(700);
            slider.valueProperty().addListener(new InvalidationListener() {
                @Override
                public void invalidated(Observable o) {
                    int value = (int) ((DoubleProperty) o).get();
                    color(srcPixels, pixWriter, value, width ,height);
                }
            });
            root.getChildren().add(slider);
            color(srcPixels, pixWriter, 0, width, height);
        }
        private void color(int[] srcPixels, PixelWriter pixWriter, int value, int width, int height) {
            final int area = width * height ;
            final int[] writerPixels = new int[area];
    
            final int a = 0xff00_0000;
            final int greenMask = 0xff00;
    
            for (int y = 0; y < height; y++) {
                final int depthOffset = y * width ;
                for (int x = 0; x < width; x++) {
                    final int xy = x * y;
    final int index = x + depthOffset ;
                    final int red = value * xy  / area ;
                    final int green = srcPixels[index] & greenMask ;
                    final int blue = value * (area - xy)  / area ;
                    writerPixels[index] = a | red << 16 | green | blue ;
                }
            }
            pixWriter.setPixels(0, 0, width, height, PixelFormat.getIntArgbInstance(), writerPixels, 0, width);
        }
            public static void main(String[] args) {
                launch(args);
            }
        } 
    
  • How to improve the performance of the import

    I'm converting a database of its current WE8ISO88591 character set AL32UTF8
    I use NLS_LENGTH_SEMANTICS to TANK so I don't have to increase the length of the column.

    I followed the instructions in the Oracle:
    144808.1
    313175.1

    Except import that takes too long.

    I took a full database export WE8ISO8859p1 and now its importation in AL32UTF8.

    It is always difficult to prove slow source; but I think it has to do something with NLS_LENGTH_SEMANTICS. On the same
    Server; If the new database was in WE8ISO8859P1, a 5 million row table import took 2 hours; but in Al32UTF8 with NLS_LENGTH_SEMANTICS it takes 1 day!

    No idea how to improve the performance of the import.

    DOUBLE WIRE!

    Please, don't post duplicate discussions.

    Mark this thread ANSWER and continue to use your original thread where you are already helped.

    You have NOT given the info that has been ask in your other thread.
    Re: NLS_LENGTH_SEMANTICS = CHAR import is too slow

Maybe you are looking for