Select very slow on empty table
Oracle 9.2.0.5.0
I had a table with ~1m rows. I truncated it. I then analysed the table and all it's indexes. After that a select * from table was taking ~10secs but the table was empty. Our DBA fixed the problem but I am intriged in what he did. Any ideas?
Thanks
As requested, the table script:
CREATE TABLE "AcEvent"
"EventId" INTEGER NOT NULL,
"EventTimestamp" DATE NOT NULL,
"SystemComponentId" INTEGER NOT NULL,
"UserName" VARCHAR2(50 BYTE) NOT NULL,
"EventTypeCode" INTEGER NOT NULL,
"StartTimestamp" DATE NOT NULL,
"EndTimestamp" DATE NOT NULL,
"StatusCode" INTEGER NOT NULL,
"ServiceTypeCode" INTEGER NOT NULL
TABLESPACE ACTUATE_DATA
PCTUSED 0
PCTFREE 10
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
LOGGING
NOCOMPRESS
NOCACHE
NOPARALLEL
NOMONITORING;
CREATE INDEX ACEVENT_IDX_01 ON "AcEvent"
("EventId", "SystemComponentId", "StatusCode", "ServiceTypeCode", "EventTypeCode",
"EventTimestamp", UPPER(DECODE("UserName",'-',NULL,"UserName")))
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE INDEX "AcEv_SyCoId_Idx" ON "AcEvent"
("SystemComponentId")
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL
COMPRESS 1;
CREATE INDEX "AcEv_StCo_Idx" ON "AcEvent"
("StatusCode")
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL
COMPRESS 1;
CREATE INDEX "AcEv_EvTi_Idx" ON "AcEvent"
("EventTimestamp")
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL;
CREATE INDEX "AcEv_UsNa_Idx" ON "AcEvent"
("UserName")
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL
COMPRESS 1;
CREATE INDEX "AcEv_EvTyCo_Idx" ON "AcEvent"
("EventTypeCode")
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL
COMPRESS 1;
CREATE INDEX "AcEv_SyTyCo_Idx" ON "AcEvent"
("ServiceTypeCode")
LOGGING
TABLESPACE ACTUATE_DATA
PCTFREE 10
INITRANS 2
MAXTRANS 255
STORAGE (
INITIAL 64K
MINEXTENTS 1
MAXEXTENTS 2147483645
PCTINCREASE 0
BUFFER_POOL DEFAULT
NOPARALLEL
COMPRESS 1;
ALTER TABLE "AcEvent" ADD (
CONSTRAINT "AcEv_EvId_Idx"
PRIMARY KEY
("EventId"));
ALTER TABLE "AcEvent" ADD (
FOREIGN KEY ("SystemComponentId")
REFERENCES "AcSystemComponent" ("SystemComponentId"));
ALTER TABLE "AcEvent" ADD (
FOREIGN KEY ("EventTypeCode")
REFERENCES "AcEventType" ("EventTypeCode"));
ALTER TABLE "AcEvent" ADD (
FOREIGN KEY ("StatusCode")
REFERENCES "AcStatus" ("StatusCode"));
ALTER TABLE "AcEvent" ADD (
FOREIGN KEY ("ServiceTypeCode")
REFERENCES "AcServiceType" ("ServiceTypeCode"));
Similar Messages
-
Quey is running very slow on system table in one of the database
oracle database 11.2.0.2
select owner||'.'||segment_name Segment_name,
bytes/(1024*1024) Size_MB,
extents,
round(initial_extent/(1024*1024),2) initial_MB,
round(next_extent/(1024*1024),2) next_MB,
PCT_INCREASE pct,
min_extents||' - '||decode(max_extents,2147483645,'UNLIM',max_extents) min_max,
segment_type type,
tablespace_name
from dba_segments S
WHERE SEGMENT_NAME IN ( SELECT SEGMENT_NAME FROM DBA_LOBS L
WHERE TABLE_NAME = 'PS_PV_ATT_DB_SRV'
UNION ALL
SELECT INDEX_NAME FROM DBA_LOBS
WHERE TABLE_NAME = 'PS_PV_ATT_DB_SRV'
UNION ALL
SELECT TABLE_NAME FROM DBA_LOBS
WHERE TABLE_NAME ='PS_PV_ATT_DB_SRV'
);Yup! Looks like a bug. Search MOS to see if it has been filed before and, if not, file an SR with Oracle.
If you really need the data (as opposed to just demonstrating a problem) then use a table expression like this
WITH q as (SELECT SEGMENT_NAME FROM DBA_LOBS L
WHERE TABLE_NAME = 'PS_PV_ATT_DB_SRV'
UNION ALL
SELECT INDEX_NAME FROM DBA_LOBS
WHERE TABLE_NAME = 'PS_PV_ATT_DB_SRV'
UNION ALL
SELECT TABLE_NAME FROM DBA_LOBS
WHERE TABLE_NAME ='PS_PV_ATT_DB_SRV'
select owner||'.'||segment_name Segment_name,
bytes/(1024*1024) Size_MB,
extents,
round(initial_extent/(1024*1024),2) initial_MB,
round(next_extent/(1024*1024),2) next_MB,
PCT_INCREASE pct,
min_extents||' - '||decode(max_extents,2147483645,'UNLIM',max_extents) min_max,
segment_type type,
tablespace_name
from dba_segments S where segment_name in (select segment_name from q) -
Start-up disk selection very slow, how to speed up.
I have multiple Operating Systems on my MBP and in order to boot form one in to the other I hold the Alt key at start-up. However, having several MBP', i5 on one machine it is extremely slow. It takes almost 2 minutes before the choice of disks appear, it is a i5, MacBookPro6,2.
Is there a way of speeding this up? Alernatively, is there maybe a Mac utility where I can choose the start-up disk from (not using the control panel as this would permanently change the start-up disk and I want the Mac OS to be the default OS) and invoke a restart?
Love to hear.We get email notifications if some color is clicked, otherwise posts drop off the pages as we think your not interested in our responses.
ChangeAgent wrote:
ds store wrote:
Sounds like your EFI is corrupted.
So my question was how one fixes that? Rest, un-corrupt.
I must have been tired, I meant "EFI and/or the GUID partition table"
You'll have to backup your files off the machine, erase and install 10.6, software update to 10.6.8, install all OS X programs, setup bootcamp again and can only install Windows 7 (not XP or Vista.) Return files from backup.
Follow these steps, you need to erase the ENTIRE drive of all partitions to catch the hidden EFI partition and rebuild the GUID partition table anew
How to erase and install Snow Leopard 10.6
Your direct boot XP days are history on your Mac, it's the Apple way to burn their bridges behind them faster and faster every year.
You might want to use a virtual machine instead, but there is a performance hit.
Windows in BootCamp or Virtual Machine? -
MacBook Pro 10.7 very slow to empty trash
I have 32 items in my trash and it's been trying to empty the trash for over 30min. now.
Here is what I've tried:
1. Option > Click > Empty Trash ; Didn't work
2. Restarted computer > Empty Trash : Didn't work
3. Shutdown compuer > Empty Trash: Didn't work
4. Booted up off recovery jump drive > Ran Disk Utilities > Fixed HD > Fixed Permissions > Rebooted > Empty Trash: Didn't Work
5. Emptied font cache > Restarted > Empty Trash: Didn't Work.Go to /Applications /Utilities/Terminal and launch it.
At the prompt, copy and paste this command
sudo rm -rf ~/.Trash
Press Return.
You will be asked to enter your admin password. It will be invisible.
Enter it and press Return.
Log out and back in or restart.
Let us know. -
Trash VERY slow to empty - NOT secure - 10.7.4
Any suggestions?! Thanks!
Go to /Applications /Utilities/Terminal and launch it.
At the prompt, copy and paste this command
sudo rm -rf ~/.Trash
Press Return.
You will be asked to enter your admin password. It will be invisible.
Enter it and press Return.
Log out and back in or restart.
Let us know. -
Wastebasket on my MBA is VERY slow to delete...
Lately I've noticed that my "waste basket" is VERY slow to empty. As I remember, until recently, when I emptied the waste, the "gas gauge" rapidly moved from left to right. Now it crawls VERY slowly. Almost like it's doing a 3 pass write over. Anyone else notice this?
I have 65GB of free space if this is a factor.
Running Lion 10.7.3
MBA 128GB SSDMatthew Morgan wrote:
Let us know.
Matt
I guess unchecking "Empty trash securely" took care of this problem. I put a bunch of stuff in the waste backet, then hit empty and it "swallowed" the whole load in one big gulp. Thanks for the tip Matt!
I realize the detete files can be recovered by a super techie, but there is nothing on my computer would worry me if the files were recovered. And I'm thinking this "empty trash securely" might preclude them from being recovered if push came to shove. -
Brand New Machine and Photoshop CS6 running very slow
I just installed Photoshop CS6 on my new Machine and it is running horrible. Moving around objects, turning effects on/off, zooming, and more all take for ever to render. I can not figure out why. I have updated video card drivers and more. Scratch Disk is set to a second disk and messed with all of the GPU settings. Only photoshop runs bad on this machine. I should not be having issues with the system. Below is the system info from Photoshop. Also this machine is running with two SSD drives which should make PS run even faster.
Adobe Photoshop Version: 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00) x64
Operating System: Windows 7 64-bit
Version: 6.1 Service Pack 1
System architecture: Intel CPU Family:6, Model:13, Stepping:7 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
Physical processor count: 12
Logical processor count: 24
Processor speed: 2294 MHz
Built-in memory: 16310 MB
Free memory: 11540 MB
Memory available to Photoshop: 14661 MB
Memory used by Photoshop: 70 %
Image tile size: 128K
Image cache levels: 4
OpenGL Drawing: Enabled.
OpenGL Drawing Mode: Advanced
OpenGL Allow Normal Mode: True.
OpenGL Allow Advanced Mode: True.
OpenGL Allow Old GPUs: Not Detected.
Video Card Vendor: ATI Technologies Inc.
Video Card Renderer: AMD FirePro V5900 (ATI FireGL)
Display: 3
Display Bounds:= top: -80, left: -1024, bottom: 1200, right: 0
Display: 2
Display Bounds:= top: 0, left: 1920, bottom: 1680, right: 2970
Display: 1
Display Bounds:= top: 0, left: 0, bottom: 1200, right: 1920
Video Card Number: 2
Video Card: AMD FirePro V5900 (ATI FireGL)
OpenCL Version:
Driver Version: 8.982.8.3000
Driver Date: 20120930000000.000000-000
Video Card Driver: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.d ll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
Video Mode: 1680 x 1050 x 4294967296 colors
Video Card Caption: AMD FirePro V5900 (ATI FireGL)
Video Card Memory: 2048 MB
Video Rect Texture Size: 16384
Video Card Number: 1
Video Card: AMD FirePro V5900 (ATI FireGL)
OpenCL Version:
Driver Version: 8.982.8.3000
Driver Date: 20120930000000.000000-000
Video Card Driver: aticfx64.dll,aticfx64.dll,aticfx64.dll,aticfx32,aticfx32,aticfx32,atiumd64.dll,atidxx64.d ll,atidxx64.dll,atiumdag,atidxx32,atidxx32,atiumdva,atiumd6a.cap,atitmm64.dll
Video Mode: 1920 x 1200 x 4294967296 colors
Video Card Caption: AMD FirePro V5900 (ATI FireGL)
Video Card Memory: 2048 MB
Video Rect Texture Size: 16384
Serial number: 92938707758622115301
Application folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\
Temporary file path: C:\Users\JDONAL~1.RWS\AppData\Local\Temp\
Photoshop scratch has async I/O enabled
Scratch volume(s):
D:\, 237.9G, 229.4G free
Required Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Required\
Primary Plug-ins folder: C:\Program Files\Adobe\Adobe Photoshop CS6 (64 Bit)\Plug-ins\
Additional Plug-ins folder: not set
Installed components:
A3DLIBS.dll A3DLIB Dynamic Link Library 9.2.0.112
ACE.dll ACE 2012/06/05-15:16:32 66.507768 66.507768
adbeape.dll Adobe APE 2012/01/25-10:04:55 66.1025012 66.1025012
AdobeLinguistic.dll Adobe Linguisitc Library 6.0.0
AdobeOwl.dll Adobe Owl 2012/06/26-12:17:19 4.0.95 66.510504
AdobePDFL.dll PDFL 2011/12/12-16:12:37 66.419471 66.419471
AdobePIP.dll Adobe Product Improvement Program 6.0.0.1654
AdobeXMP.dll Adobe XMP Core 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPFiles.dll Adobe XMP Files 2012/02/06-14:56:27 66.145661 66.145661
AdobeXMPScript.dll Adobe XMP Script 2012/02/06-14:56:27 66.145661 66.145661
adobe_caps.dll Adobe CAPS 6,0,29,0
AGM.dll AGM 2012/06/05-15:16:32 66.507768 66.507768
ahclient.dll AdobeHelp Dynamic Link Library 1,7,0,56
aif_core.dll AIF 3.0 62.490293
aif_ocl.dll AIF 3.0 62.490293
aif_ogl.dll AIF 3.0 62.490293
amtlib.dll AMTLib (64 Bit) 6.0.0.75 (BuildVersion: 6.0; BuildDate: Mon Jan 16 2012 18:00:00) 1.000000
ARE.dll ARE 2012/06/05-15:16:32 66.507768 66.507768
AXE8SharedExpat.dll AXE8SharedExpat 2011/12/16-15:10:49 66.26830 66.26830
AXEDOMCore.dll AXEDOMCore 2011/12/16-15:10:49 66.26830 66.26830
Bib.dll BIB 2012/06/05-15:16:32 66.507768 66.507768
BIBUtils.dll BIBUtils 2012/06/05-15:16:32 66.507768 66.507768
boost_date_time.dll DVA Product 6.0.0
boost_signals.dll DVA Product 6.0.0
boost_system.dll DVA Product 6.0.0
boost_threads.dll DVA Product 6.0.0
cg.dll NVIDIA Cg Runtime 3.0.00007
cgGL.dll NVIDIA Cg Runtime 3.0.00007
CIT.dll Adobe CIT 2.0.5.19287 2.0.5.19287
CoolType.dll CoolType 2012/06/05-15:16:32 66.507768 66.507768
data_flow.dll AIF 3.0 62.490293
dvaaudiodevice.dll DVA Product 6.0.0
dvacore.dll DVA Product 6.0.0
dvamarshal.dll DVA Product 6.0.0
dvamediatypes.dll DVA Product 6.0.0
dvaplayer.dll DVA Product 6.0.0
dvatransport.dll DVA Product 6.0.0
dvaunittesting.dll DVA Product 6.0.0
dynamiclink.dll DVA Product 6.0.0
ExtendScript.dll ExtendScript 2011/12/14-15:08:46 66.490082 66.490082
FileInfo.dll Adobe XMP FileInfo 2012/01/17-15:11:19 66.145433 66.145433
filter_graph.dll AIF 3.0 62.490293
hydra_filters.dll AIF 3.0 62.490293
icucnv40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
icudt40.dll International Components for Unicode 2011/11/15-16:30:22 Build gtlib_3.0.16615
image_compiler.dll AIF 3.0 62.490293
image_flow.dll AIF 3.0 62.490293
image_runtime.dll AIF 3.0 62.490293
JP2KLib.dll JP2KLib 2011/12/12-16:12:37 66.236923 66.236923
libifcoremd.dll Intel(r) Visual Fortran Compiler 10.0 (Update A)
libmmd.dll Intel(r) C Compiler, Intel(r) C++ Compiler, Intel(r) Fortran Compiler 10.0
LogSession.dll LogSession 2.1.2.1640
mediacoreif.dll DVA Product 6.0.0
MPS.dll MPS 2012/02/03-10:33:13 66.495174 66.495174
msvcm80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcm90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcp100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcp80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcp90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
msvcr100.dll Microsoft® Visual Studio® 2010 10.00.40219.1
msvcr80.dll Microsoft® Visual Studio® 2005 8.00.50727.6195
msvcr90.dll Microsoft® Visual Studio® 2008 9.00.30729.1
pdfsettings.dll Adobe PDFSettings 1.04
Photoshop.dll Adobe Photoshop CS6 CS6
Plugin.dll Adobe Photoshop CS6 CS6
PlugPlug.dll Adobe(R) CSXS PlugPlug Standard Dll (64 bit) 3.0.0.383
PSArt.dll Adobe Photoshop CS6 CS6
PSViews.dll Adobe Photoshop CS6 CS6
SCCore.dll ScCore 2011/12/14-15:08:46 66.490082 66.490082
ScriptUIFlex.dll ScriptUIFlex 2011/12/14-15:08:46 66.490082 66.490082
tbb.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
tbbmalloc.dll Intel(R) Threading Building Blocks for Windows 3, 0, 2010, 0406
TfFontMgr.dll FontMgr 9.3.0.113
TfKernel.dll Kernel 9.3.0.113
TFKGEOM.dll Kernel Geom 9.3.0.113
TFUGEOM.dll Adobe, UGeom© 9.3.0.113
updaternotifications.dll Adobe Updater Notifications Library 6.0.0.24 (BuildVersion: 1.0; BuildDate: BUILDDATETIME) 6.0.0.24
WRServices.dll WRServices Friday January 27 2012 13:22:12 Build 0.17112 0.17112
wu3d.dll U3D Writer 9.3.0.113
Required plug-ins:
3D Studio 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Accented Edges 13.0
Adaptive Wide Angle 13.0
ADM 3.11x01
Angled Strokes 13.0
Average 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Bas Relief 13.0
BMP 13.0
Camera Raw 7.3
Chalk & Charcoal 13.0
Charcoal 13.0
Chrome 13.0
Cineon 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Clouds 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Collada 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Color Halftone 13.0
Colored Pencil 13.0
CompuServe GIF 13.0
Conté Crayon 13.0
Craquelure 13.0
Crop and Straighten Photos 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Crop and Straighten Photos Filter 13.0
Crosshatch 13.0
Crystallize 13.0
Cutout 13.0
Dark Strokes 13.0
De-Interlace 13.0
Dicom 13.0
Difference Clouds 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Diffuse Glow 13.0
Displace 13.0
Dry Brush 13.0
Eazel Acquire 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Embed Watermark 4.0
Entropy 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Extrude 13.0
FastCore Routines 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Fibers 13.0
Film Grain 13.0
Filter Gallery 13.0
Flash 3D 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Fresco 13.0
Glass 13.0
Glowing Edges 13.0
Google Earth 4 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Grain 13.0
Graphic Pen 13.0
Halftone Pattern 13.0
HDRMergeUI 13.0
IFF Format 13.0
Ink Outlines 13.0
JPEG 2000 13.0
Kurtosis 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Lens Blur 13.0
Lens Correction 13.0
Lens Flare 13.0
Liquify 13.0
Matlab Operation 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Maximum 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Mean 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Measurement Core 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Median 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Mezzotint 13.0
Minimum 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
MMXCore Routines 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Mosaic Tiles 13.0
Multiprocessor Support 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Neon Glow 13.0
Note Paper 13.0
NTSC Colors 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Ocean Ripple 13.0
Oil Paint 13.0
OpenEXR 13.0
Paint Daubs 13.0
Palette Knife 13.0
Patchwork 13.0
Paths to Illustrator 13.0
PCX 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Photocopy 13.0
Photoshop 3D Engine 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Picture Package Filter 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Pinch 13.0
Pixar 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Plaster 13.0
Plastic Wrap 13.0
PNG 13.0
Pointillize 13.0
Polar Coordinates 13.0
Portable Bit Map 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Poster Edges 13.0
Radial Blur 13.0
Radiance 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Range 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Read Watermark 4.0
Reticulation 13.0
Ripple 13.0
Rough Pastels 13.0
Save for Web 13.0
ScriptingSupport 13.0.1
Shear 13.0
Skewness 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Smart Blur 13.0
Smudge Stick 13.0
Solarize 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Spatter 13.0
Spherize 13.0
Sponge 13.0
Sprayed Strokes 13.0
Stained Glass 13.0
Stamp 13.0
Standard Deviation 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Sumi-e 13.0
Summation 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Targa 13.0
Texturizer 13.0
Tiles 13.0
Torn Edges 13.0
Twirl 13.0
U3D 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Underpainting 13.0
Vanishing Point 13.0
Variance 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Variations 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Water Paper 13.0
Watercolor 13.0
Wave 13.0
Wavefront|OBJ 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
WIA Support 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
Wind 13.0
Wireless Bitmap 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00)
ZigZag 13.0
Optional and third party plug-ins: NONE
Plug-ins that failed to load: NONE
Flash:
Mini Bridge
Extensis
Kuler
Installed TWAIN devices: NONEMy Old System was:
Dell T5500
GPU1: ATI FirePro 5700
GPU2: Nvidia Geforce 210
CPU1:Xeon E5520 2.26Ghz
CPU2: Xeon E5520 2.26Ghz
C Drive: 80gb Sata 10K RPM
D Drive/Scratch Disk: 80gb Sata 10K RPM
Photoshop CS6 was set at default performance setting with the exception of the D drive being used for the scratch disk. GPU Processor was checked.
Worked on numerous large files 100 mg plus with little to no issue. Most setup in CMYK, 200 dpi, 8 bit depth.
New Machine:
Dell T5600
Two ATI FirePro V5900
CPU1: Xeon E5-2630
CPU2: Xeon E5-2630
C Drive: 240 gb SSD
D Drive:
My Old System was:
Dell T5500
GPU1: ATI FirePro 5700
GPU2: Nvidia Geforce 210
CPU1:Xeon E5520 2.26Ghz
CPU2: Xeon E5520 2.26Ghz
C Drive: 80gb Sata 10K RPM
D Drive/Scratch Disk: 80gb Sata 10K RPM
Photoshop CS6 was set at default performance setting with the exception of the D drive being used for the scratch disk. GPU Processor was checked.
Worked on numerous large files 100 mg plus with little to no issue. Most setup in CMYK, 200 dpi, 8 bit depth.
New Machine:
Dell T5600
Two ATI FirePro V5900
CPU1: Xeon E5-2630
CPU2: Xeon E5-2630
C Drive: 240 gb SSD
D Drive: 240gb SSD
Tried Photoshop at all sorts of various settings including default. All with the D drive being used for the Scratch disk. Working on the similar size file described above. The file I am working on now is 4000 x 4800 pixels, CMYK, 8 bit depth. Photoshop is slow selecting layers with auto select, very slow when moving layers around the Canvas, and slow rendering the Canvas when zooming in and out. This document also has about 30 layers and is 80mg.
I only use the 64 bit version of Photoshop these days. Also all three monitors are set at 60 Hertz. Photoshop is closed and reopened upon all changes.
I use to be a Photoshop Certified Expert in CS3 so I am extremely familar with the product. I am just stumped. -
Date insertion from large XML document (clob) into relation table very slow
Hi Everybody!
I'm working with Oracle 9.2.0.5 on Microsoft Windows Server 2003 Enterprise Edition.
The server (a test server) is a Pentium 4 2.8 GHz, 1GB of RAM.
I use a procedure called PARITOP_TRAITERXMLRESULTMASSE to insert the data contained in the pXMLDOC clob parameter in the table pTABLENAME. (You can see the format of the XML document below). The first step on this procedure is to verify that the XML document is not empty. If not, the procedure needs to add a node in the document, in every <ROW> tag. This added node is named âRST_IDâ. Itâs the foreign key of each record. I can retrieve the value of each <RST_ID> node in an other table in which the data has been previously added (by the calling procedure). When each of the <ROW> elements has been treated, the PARITOP_INSERTXML procedure is called. This procedure uses DBMS_XMLSAVE.INSERTXML to insert the data contained in the XML document in the specified table.
(Below, you can see the code of my procedures.)
With this information, can you tell me why this treatment is very very very slow with a large XML document and how I can improve it?
Thank you for your help!
Anne-Marie
CREATE OR REPLACE PROCEDURE "PARITOP_TRAITERXMLRESULTMASSE" (
pPRC_ID IN PARITOP_PARC.PRC_ID%TYPE,
pRST_MONDE IN PARITOP_RESULTAT.RST_MONDE%TYPE,
pXMLDOC IN CLOB,
pTABLENAME IN VARCHAR2)
AS
Objectif :Insérer le contenu du XML passé en paramètre (pXMLDOC) à la table passée en paramètre (pTABLENAME)
La table passée en paramètre doit être une table ayant comme clé étrangère le champs "RST_ID" .
(Le noeud RST_ID est donc ajouté à tous les document XML. Ce rst_id est
déterminé à partir de la table PARITOP_RESULTAT grâce à pPRC_ID et
pRstMonde fournis en paramètre)
result_doc CLOB;
XMLDOMDOC XDB.DBMS_XMLDOM.DOMDOCUMENT;
NODE_ROWSET DBMS_XMLDOM.DOMNODE;
NODE_ROW DBMS_XMLDOM.DOMNODE;
vUE_ID PARITOP_RESULTAT.UE_ID%TYPE;
vRST_ID PARITOP_RESULTAT.RST_ID%TYPE;
nodeList DBMS_XMLDOM.DOMNODELIST;
BEGIN
BEGIN
vUE_ID := 0;
vRST_ID := 0;
XMLDOMDOC := DBMS_XMLDOM.NEWDOMDOCUMENT(pXMLDOC);
IF NOT GESTXML_PKG.FN_PARITOP_DOCUMENT_IS_NULL(XMLDOMDOC) THEN
NODE_ROWSET := DBMS_XMLDOM.item(DBMS_XMLDOM.GETCHILDNODES (DBMS_XMLDOM.MAKENODE(XMLDOMDOC)),0);
for i in 0..dbms_xmldom.getLength(DBMS_XMLDOM.getchildnodes(NODE_ROWSET))-1 loop
NODE_ROW := DBMS_XMLDOM.ITEM(DBMS_XMLDOM.GETCHILDNODES(NODE_ROWSET), i) ;
nodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(DBMS_XMLDOM.makeelement(NODE_ROW) , 'UE_ID');
IF vUE_ID <> DBMS_XMLDOM.GETNODEVALUE(DBMS_XMLDOM.GETFIRSTCHILD(DBMS_XMLDOM.ITEM(nodeList, 0))) THEN
vUE_ID := DBMS_XMLDOM.GETNODEVALUE(DBMS_XMLDOM.GETFIRSTCHILD(DBMS_XMLDOM.ITEM(nodeList, 0)));
--on ramasse le rst_id
SELECT RST_ID INTO vRST_ID
FROM PARITOP_RESULTAT RST
WHERE RST.PRC_ID = pPRC_ID
AND RST.UE_ID = vUE_ID
AND RST.RST_MONDE = pRST_MONDE
AND RST_A_SUPPRIMER = 0;
END IF;
GESTXML_PKG.PARITOP_ADDNODETOROW(XMLDOMDOC, NODE_ROW, 'RST_ID', vRST_ID);
end loop;
RESULT_DOC := ' '; --Ã garder, pour ne pas que ca fasse d'erreur lors du WriteToClob.
dbms_xmldom.writeToClob(DBMS_XMLDOM.MAKENODE(XMLDOMDOC), RESULT_DOC);
--Insertion du document XML dans la table "tableName"
GESTXML_PKG.PARITOP_INSERTXML(RESULT_DOC, pTABLENAME);
DBMS_XMLDOM.FREEDOCUMENT( XMLDOMDOC);
end if;
EXCEPTION
[â¦exception treatementâ¦]
END;
END;
The format of a XML clob is :
<ROWSET>
<ROW>
<PRC_ID>193</PRC_ID>
<UE_ID>8781</UE_ID>
<VEN_ID>6223</VEN_ID>
<RST_MONDE>0</RST_MONDE>
<CMP_SELMAN>0</CMP_SELMAN>
<CMP_INDICESELECTION>92.307692307692307</CMP_INDICESELECTION>
<CMP_PVRES>94900</CMP_PVRES>
<CMP_PVAJUSTE>72678.017699115066</CMP_PVAJUSTE>
<CMP_PVAJUSTEMIN>72678.017699115095</CMP_PVAJUSTEMIN>
<CMP_PVAJUSTEMAX>72678.017699115037</CMP_PVAJUSTEMAX>
<CMP_PV>148000</CMP_PV>
<CMP_VALROLE>129400</CMP_VALROLE>
<CMP_PVRESECART>4790</CMP_PVRESECART>
<CMP_PVRHAB>101778.01769911509</CMP_PVRHAB>
<CMP_UTILISE>1</CMP_UTILISE>
<CMP_TVM>1</CMP_TVM>
<CMP_PVA>148000</CMP_PVA>
</ROW>
<ROW>
<PRC_ID>193</PRC_ID>
<UE_ID>8781</UE_ID>
<VEN_ID>6235</VEN_ID>
<RST_MONDE>0</RST_MONDE>
<CMP_SELMAN>0</CMP_SELMAN>
<CMP_INDICESELECTION>76.92307692307692</CMP_INDICESELECTION>
<CMP_PVRES>117800</CMP_PVRES>
<CMP_PVAJUSTE>118080</CMP_PVAJUSTE>
<CMP_PVAJUSTEMIN>118080</CMP_PVAJUSTEMIN>
<CMP_PVAJUSTEMAX>118080</CMP_PVAJUSTEMAX>
<CMP_PV>172000</CMP_PV>
<CMP_VALROLE>134800</CMP_VALROLE>
<CMP_PVRESECART>0</CMP_PVRESECART>
<CMP_PVRHAB>147180</CMP_PVRHAB>
<CMP_UTILISE>1</CMP_UTILISE>
<CMP_TVM>1</CMP_TVM>
<CMP_PVA>172000</CMP_PVA>
</ROW>
</ROWSET>
PARITOP_COMPARABLE TABLE :
RST_ID NUMBER(10) NOT NULL,
VEN_ID NUMBER(10) NOT NULL,
CMP_SELMAN NUMBER(1) NOT NULL,
CMP_UTILISE NUMBER(1) NOT NULL,
CMP_INDICESELECTION FLOAT(53) NOT NULL,
CMP_PVRES FLOAT(53) NULL,
CMP_PVAJUSTE FLOAT(53) NULL,
CMP_PVRHAB FLOAT(53) NULL,
CMP_TVM FLOAT(53) NULL
ROCEDURE PARITOP_INSERTXML (xmlDoc IN clob, tableName IN VARCHAR2)
AS
insCtx DBMS_XMLSave.ctxType;
rowss number;
BEGIN
--permet d'insérer les champs du XML dans la table passée en paramètre.
--il suffit que les champs XML aient le même nom que les champs de la table
BEGIN
insCtx := DBMS_XMLSave.newContext(tableName); -- get context handle
DBMS_XMLSAVE.SETDATEFORMAT( insCtx, 'yyyy-MM-dd HH:mm:ss');--attention, case sensitive
DBMS_XMLSAVE.setIgnoreCase(insCtx, 1);
rowss := DBMS_XMLSAVE.INSERTXML(insCtx , xmlDoc);
DBMS_XMLSave.closeContext(insCtx);
EXCEPTION
[â¦]
END;
END;
PROCEDURE PARITOP_ADDNODETOROW (
XMLDOMDOC DBMS_XMLDOM.DOMDOCUMENT,
NODE_ROW dbms_xmldom.DOMNode,
NOM_NOEUD VARCHAR2,
VALEUR_NOEUD VARCHAR2)
AS
--PERMET D'AJOUTER UN NOEUD AVEC 1 SEULE VALEUR DANS une ROW D'UN XML.
--UTILE SURTOUT POUR LES CLÃS ÃTRANGÃRES
domElemAInserer DBMS_XMLDOM.DOMELEMENT;
NODE dbms_xmldom.DOMNode;
NODE_TMP dbms_xmldom.DOMNode;
BEGIN
domElemAInserer := DBMS_XMLDOM.createElement(XMLDOMDOC, NOM_NOEUD) ;
NODE := DBMS_XMLDOM.MAKENODE(domElemAInserer); --cast
NODE := DBMS_XMLDOM.APPENDCHILD(NODE_ROW,NODE);
NODE_TMP := DBMS_XMLDOM.MAKENODE(DBMS_XMLDOM.CREATETEXTNODE(XMLDOMDOC, VALEUR_NOEUD ) );
NODE := DBMS_XMLDOM.APPENDCHILD(NODE,NODE_TMP );
END;Hi Everybody!
I'm working with Oracle 9.2.0.5 on Microsoft Windows Server 2003 Enterprise Edition.
The server (a test server) is a Pentium 4 2.8 GHz, 1GB of RAM.
I use a procedure called PARITOP_TRAITERXMLRESULTMASSE to insert the data contained in the pXMLDOC clob parameter in the table pTABLENAME. (You can see the format of the XML document below). The first step on this procedure is to verify that the XML document is not empty. If not, the procedure needs to add a node in the document, in every <ROW> tag. This added node is named âRST_IDâ. Itâs the foreign key of each record. I can retrieve the value of each <RST_ID> node in an other table in which the data has been previously added (by the calling procedure). When each of the <ROW> elements has been treated, the PARITOP_INSERTXML procedure is called. This procedure uses DBMS_XMLSAVE.INSERTXML to insert the data contained in the XML document in the specified table.
(Below, you can see the code of my procedures.)
With this information, can you tell me why this treatment is very very very slow with a large XML document and how I can improve it?
Thank you for your help!
Anne-Marie
CREATE OR REPLACE PROCEDURE "PARITOP_TRAITERXMLRESULTMASSE" (
pPRC_ID IN PARITOP_PARC.PRC_ID%TYPE,
pRST_MONDE IN PARITOP_RESULTAT.RST_MONDE%TYPE,
pXMLDOC IN CLOB,
pTABLENAME IN VARCHAR2)
AS
Objectif :Insérer le contenu du XML passé en paramètre (pXMLDOC) à la table passée en paramètre (pTABLENAME)
La table passée en paramètre doit être une table ayant comme clé étrangère le champs "RST_ID" .
(Le noeud RST_ID est donc ajouté à tous les document XML. Ce rst_id est
déterminé à partir de la table PARITOP_RESULTAT grâce à pPRC_ID et
pRstMonde fournis en paramètre)
result_doc CLOB;
XMLDOMDOC XDB.DBMS_XMLDOM.DOMDOCUMENT;
NODE_ROWSET DBMS_XMLDOM.DOMNODE;
NODE_ROW DBMS_XMLDOM.DOMNODE;
vUE_ID PARITOP_RESULTAT.UE_ID%TYPE;
vRST_ID PARITOP_RESULTAT.RST_ID%TYPE;
nodeList DBMS_XMLDOM.DOMNODELIST;
BEGIN
BEGIN
vUE_ID := 0;
vRST_ID := 0;
XMLDOMDOC := DBMS_XMLDOM.NEWDOMDOCUMENT(pXMLDOC);
IF NOT GESTXML_PKG.FN_PARITOP_DOCUMENT_IS_NULL(XMLDOMDOC) THEN
NODE_ROWSET := DBMS_XMLDOM.item(DBMS_XMLDOM.GETCHILDNODES (DBMS_XMLDOM.MAKENODE(XMLDOMDOC)),0);
for i in 0..dbms_xmldom.getLength(DBMS_XMLDOM.getchildnodes(NODE_ROWSET))-1 loop
NODE_ROW := DBMS_XMLDOM.ITEM(DBMS_XMLDOM.GETCHILDNODES(NODE_ROWSET), i) ;
nodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(DBMS_XMLDOM.makeelement(NODE_ROW) , 'UE_ID');
IF vUE_ID <> DBMS_XMLDOM.GETNODEVALUE(DBMS_XMLDOM.GETFIRSTCHILD(DBMS_XMLDOM.ITEM(nodeList, 0))) THEN
vUE_ID := DBMS_XMLDOM.GETNODEVALUE(DBMS_XMLDOM.GETFIRSTCHILD(DBMS_XMLDOM.ITEM(nodeList, 0)));
--on ramasse le rst_id
SELECT RST_ID INTO vRST_ID
FROM PARITOP_RESULTAT RST
WHERE RST.PRC_ID = pPRC_ID
AND RST.UE_ID = vUE_ID
AND RST.RST_MONDE = pRST_MONDE
AND RST_A_SUPPRIMER = 0;
END IF;
GESTXML_PKG.PARITOP_ADDNODETOROW(XMLDOMDOC, NODE_ROW, 'RST_ID', vRST_ID);
end loop;
RESULT_DOC := ' '; --Ã garder, pour ne pas que ca fasse d'erreur lors du WriteToClob.
dbms_xmldom.writeToClob(DBMS_XMLDOM.MAKENODE(XMLDOMDOC), RESULT_DOC);
--Insertion du document XML dans la table "tableName"
GESTXML_PKG.PARITOP_INSERTXML(RESULT_DOC, pTABLENAME);
DBMS_XMLDOM.FREEDOCUMENT( XMLDOMDOC);
end if;
EXCEPTION
[â¦exception treatementâ¦]
END;
END;
The format of a XML clob is :
<ROWSET>
<ROW>
<PRC_ID>193</PRC_ID>
<UE_ID>8781</UE_ID>
<VEN_ID>6223</VEN_ID>
<RST_MONDE>0</RST_MONDE>
<CMP_SELMAN>0</CMP_SELMAN>
<CMP_INDICESELECTION>92.307692307692307</CMP_INDICESELECTION>
<CMP_PVRES>94900</CMP_PVRES>
<CMP_PVAJUSTE>72678.017699115066</CMP_PVAJUSTE>
<CMP_PVAJUSTEMIN>72678.017699115095</CMP_PVAJUSTEMIN>
<CMP_PVAJUSTEMAX>72678.017699115037</CMP_PVAJUSTEMAX>
<CMP_PV>148000</CMP_PV>
<CMP_VALROLE>129400</CMP_VALROLE>
<CMP_PVRESECART>4790</CMP_PVRESECART>
<CMP_PVRHAB>101778.01769911509</CMP_PVRHAB>
<CMP_UTILISE>1</CMP_UTILISE>
<CMP_TVM>1</CMP_TVM>
<CMP_PVA>148000</CMP_PVA>
</ROW>
<ROW>
<PRC_ID>193</PRC_ID>
<UE_ID>8781</UE_ID>
<VEN_ID>6235</VEN_ID>
<RST_MONDE>0</RST_MONDE>
<CMP_SELMAN>0</CMP_SELMAN>
<CMP_INDICESELECTION>76.92307692307692</CMP_INDICESELECTION>
<CMP_PVRES>117800</CMP_PVRES>
<CMP_PVAJUSTE>118080</CMP_PVAJUSTE>
<CMP_PVAJUSTEMIN>118080</CMP_PVAJUSTEMIN>
<CMP_PVAJUSTEMAX>118080</CMP_PVAJUSTEMAX>
<CMP_PV>172000</CMP_PV>
<CMP_VALROLE>134800</CMP_VALROLE>
<CMP_PVRESECART>0</CMP_PVRESECART>
<CMP_PVRHAB>147180</CMP_PVRHAB>
<CMP_UTILISE>1</CMP_UTILISE>
<CMP_TVM>1</CMP_TVM>
<CMP_PVA>172000</CMP_PVA>
</ROW>
</ROWSET>
PARITOP_COMPARABLE TABLE :
RST_ID NUMBER(10) NOT NULL,
VEN_ID NUMBER(10) NOT NULL,
CMP_SELMAN NUMBER(1) NOT NULL,
CMP_UTILISE NUMBER(1) NOT NULL,
CMP_INDICESELECTION FLOAT(53) NOT NULL,
CMP_PVRES FLOAT(53) NULL,
CMP_PVAJUSTE FLOAT(53) NULL,
CMP_PVRHAB FLOAT(53) NULL,
CMP_TVM FLOAT(53) NULL
ROCEDURE PARITOP_INSERTXML (xmlDoc IN clob, tableName IN VARCHAR2)
AS
insCtx DBMS_XMLSave.ctxType;
rowss number;
BEGIN
--permet d'insérer les champs du XML dans la table passée en paramètre.
--il suffit que les champs XML aient le même nom que les champs de la table
BEGIN
insCtx := DBMS_XMLSave.newContext(tableName); -- get context handle
DBMS_XMLSAVE.SETDATEFORMAT( insCtx, 'yyyy-MM-dd HH:mm:ss');--attention, case sensitive
DBMS_XMLSAVE.setIgnoreCase(insCtx, 1);
rowss := DBMS_XMLSAVE.INSERTXML(insCtx , xmlDoc);
DBMS_XMLSave.closeContext(insCtx);
EXCEPTION
[â¦]
END;
END;
PROCEDURE PARITOP_ADDNODETOROW (
XMLDOMDOC DBMS_XMLDOM.DOMDOCUMENT,
NODE_ROW dbms_xmldom.DOMNode,
NOM_NOEUD VARCHAR2,
VALEUR_NOEUD VARCHAR2)
AS
--PERMET D'AJOUTER UN NOEUD AVEC 1 SEULE VALEUR DANS une ROW D'UN XML.
--UTILE SURTOUT POUR LES CLÃS ÃTRANGÃRES
domElemAInserer DBMS_XMLDOM.DOMELEMENT;
NODE dbms_xmldom.DOMNode;
NODE_TMP dbms_xmldom.DOMNode;
BEGIN
domElemAInserer := DBMS_XMLDOM.createElement(XMLDOMDOC, NOM_NOEUD) ;
NODE := DBMS_XMLDOM.MAKENODE(domElemAInserer); --cast
NODE := DBMS_XMLDOM.APPENDCHILD(NODE_ROW,NODE);
NODE_TMP := DBMS_XMLDOM.MAKENODE(DBMS_XMLDOM.CREATETEXTNODE(XMLDOMDOC, VALEUR_NOEUD ) );
NODE := DBMS_XMLDOM.APPENDCHILD(NODE,NODE_TMP );
END; -
Moving table columns is very slow
In my application moving table columns is very slow, with the rendering of table cells dragging behind the rendering of the table cell (using Java 1.5). I use a custom table cell renderer that subclasses a JPanel and contains a JTextField.
I checked I was overriding all the methods that DefaultTableCellRenderer does for performance reasons and found I wasnt overiding validate() and invalidate(), over-riding these the table column performance is now ok, but the cells are now not rendered correctly.
I also put a System.out.println into getTableRendererComponent() and found that even if I only move a column slightly the getTableRendererComponent() is called for every cell displayed rather than just the cells within the column moved/columns either side of it which is what i expect.
Any ideas what i should do. My own vague idea is to put some code into validate() and invalidate() to only call super implemntaions when really need to, but dont know how to work this out.Hi, thanks for your help - ive created a full test case, code below. I have reworked the code so I dont need to do a removeAll() but the issues remaining are:
1. If I override validate() with an empty method nothing is displayed in the grid
2. The renderer is alot slower than the using default renderer even though ive removed stuff like borders.
The code below has validate without the empty method.
(My real renderer is a bit more complicated, and I do require to use a JPanel)
import com.jthink.jaikoz.settings.LAF;
import com.jthink.jaikoz.table.ID3Cell;
import javax.swing.*;
import javax.swing.table.*;
import java.util.Vector;
import java.awt.*;
public class SlowColumnMoveTest
public static void main(String args[])
new SlowColumnMoveTest();
public SlowColumnMoveTest()
Vector colNames = new Vector();
colNames.add("col0");
colNames.add("col1");
colNames.add("col2");
colNames.add("col3");
colNames.add("col4");
colNames.add("col5");
colNames.add("col6");
colNames.add("col7");
colNames.add("col8");
colNames.add("col9");
Vector data = new Vector();
for (int i = 0; i < 500; i++)
Vector v = new Vector();
v.add(i);
for (int j = 1; j < 10; j++)
v.add(String.valueOf((i + 1) * (j + 1)));
data.add(v);
JTable table = new JTable(new DefaultTableModel(data, colNames));
table.getColumnModel().setColumnSelectionAllowed(true);
table.setDefaultRenderer(Object.class, new SlowRenderer());
JFrame frame = new JFrame("SlowColumnMoveTest");
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
JScrollPane scrollPane = new JScrollPane(table);
frame.add(scrollPane);
frame.pack();
frame.setVisible(true);
static class SlowRenderer extends JPanel implements TableCellRenderer
private static String PROPERTY_TABLE_BGCOLOUR = "Table.background";
private static String PROPERTY_TABLE_FGCOLOUR = "Table.foreground";
private static String PROPERTY_TABLE_SELECTION_BGCOLOUR = "Table.selectionBackground";
private static String PROPERTY_TABLE_SELECTION_FGCOLOUR = "Table.selectionForeground";
protected static Color tableBGColour = null;
protected static Color tableFGColour = null;
protected static Color selectionBGColour = null;
protected static Color selectionFGColour = null;
static
tableBGColour = UIManager.getColor(PROPERTY_TABLE_BGCOLOUR);
tableFGColour = UIManager.getColor(PROPERTY_TABLE_FGCOLOUR);
selectionBGColour = UIManager.getColor(PROPERTY_TABLE_SELECTION_BGCOLOUR);
selectionFGColour = UIManager.getColor(PROPERTY_TABLE_SELECTION_FGCOLOUR);
protected JTextField text;
public SlowRenderer()
text = new JTextField();
text.setBorder(null);
text.setOpaque(false);
text.setForeground(tableFGColour);
setOpaque(true);
this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
this.add(text);
public Component getTableCellRendererComponent(final JTable table,
final Object value,
final boolean isSelected,
final boolean hasFocus,
final int row,
final int column)
//System.out.println("rendering:col:"+column+":row:"+row);
text.setVisible(true);
text.setText(value.toString());
if (isSelected)
text.setForeground(selectionFGColour);
this.setBackground(selectionBGColour);
else
text.setForeground(tableFGColour);
this.setBackground(tableBGColour);
return this;
@Override
public final boolean isOpaque()
return true;
@Override
public void invalidate()
//System.out.println("invvalidate");
//super.invalidate();
@Override
public void validate()
//System.out.println("validate");
super.validate();
@Override
public void revalidate()
@Override
public void repaint(long tm, int x, int y, int width, int height)
@Override
public void repaint(Rectangle r)
@Override
public void repaint()
@Override
protected final void firePropertyChange(final String propertyName, final Object oldValue, final Object newValue)
@Override
public final void firePropertyChange(final String propertyName, final boolean oldValue, final boolean newValue)
private static final class UIResource
extends DefaultTableCellRenderer
implements javax.swing.plaf.UIResource
} -
90%space is empty still working very slow
below is my macbookpro detail .. working very slow still 90% space is empty
what to do????
Hardware Information:
MacBook Pro (13-inch, Late 2011)
MacBook Pro - model: MacBookPro8,1
1 2.8 GHz Intel Core i7 CPU: 2 cores
4 GB RAM
Video Information:
Intel HD Graphics 3000 - VRAM: 384 MB
System Software:
Mac OS X 10.7.4 (11E53) - Uptime: 0 days 0:11:12
Disk Information:
TOSHIBA MK7559GSXF disk0 : (750.16 GB)
disk0s1 (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) /: 749.3 GB (725.02 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-8A8
USB Information:
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Computer, Inc. IR Receiver
FireWire Information:
Thunderbolt Information:
Apple, Inc. MacBook Pro
Kernel Extensions:
Problem System Launch Daemons:
[not loaded] ftp-proxy.plist
Problem System Launch Agents:
Launch Daemons:
[loaded] com.adobe.fpsaud.plist
[loaded] com.macpaw.CleanMyMac2.Agent.plist
[loaded] com.zeobit.MacKeeper.AntiVirus.plist
Launch Agents:
User Launch Agents:
[failed] com.facebook.videochat.MyMAC.plist
[loaded] com.zeobit.MacKeeper.Helper.plist
User Login Items:
iTunesHelper
3rd Party Preference Panes:
Flash Player
Internet Plug-ins:
Flash Player.plugin
FlashPlayer-10.6.plugin
JavaAppletPlugin.plugin
net.juniper.DSSafariExtensions.plugin
QuickTime Plugin.plugin
User Internet Plug-ins:
Bad Fonts:
None
Top Processes by CPU:
64% helpd
2% WindowServer
1% EtreCheck
0% fontd
0% mds
0% WebProcess
0% opendirectoryd
Top Processes by Memory:
209 MB WebProcess
152 MB AntiVirus
91 MB helpd
90 MB Safari
41 MB WindowServer
33 MB mds
25 MB Finder
20 MB SystemUIServer
20 MB MacKeeper Helper
20 MB Dock
Virtual Memory Statistics
2.18 GB Free RAM
909 MB Active RAM
140 MB Inactive RAM
809 MB Wired RAM
173 MB Page-ins
0 B Page-outsBack up all data immediately as your boot drive may be failing.
If you have more than one user account, these instructions must be carried out as an administrator.
Triple-click anywhere in the line below on this page to select it:
syslog -k Sender kernel -k Message CReq 'Channel t|GPU D|I/O|Previous Sh' | tail | open -ef
Copy the selected text to the Clipboard (command-C).
Launch the Terminal application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
Paste into the Terminal window (command-V).
The command may take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear.
A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. The title of the window doesn't matter, and you don't need to post that. -
Stepping through table is very slow
LV 7.0 on Win 2K
I use a table to display records of information. The table is filled once at entry to a user interface subprogram and the user has the possiblity to select certain records by clicking or stepping through with the cursor buttons.
I have also written subprograms to sort the table by the various columns. The active row is used to provide more information e.g. displaying it in an image.
Usually you would click on a line with the mouse, but somtimes it is more convenient to step through subsequent lines with the cursor buttons.
As it turned out the latter is sometimes very slow.
I tried to trace that behaviour in my program, but it seems that the problem is within labview. I reduced the vi to a simple loop
where nothing is done with the table except to display the value. If you click on a line the value will follow instantaniously. If you click on a line at the top of the table and then step down with the cursor buttons the value will also follow very quickly. But when you do the same while beeing at the bottom this will take several seconds.
I read several entries in the forum that describe similar problems when updating the table. Please note that this is a very static table here. The only thing that is happening, is a user interacting with it with the keyboard.
The answers I saw so far, suggesting to keep the table small, or switching to other indicators etc. seem to overlook the reason why to use the table; that is tp have a compact display of a lot of ordered information. If the reason is really within LV runtime. Than NI has a nice task to improve LV next time :-(
Gabi
7.1 -- 2013
CLA
Attachments:
Tableaccess.zip 65 KBUnfortunately, I can confirm that LabVIEW 7.1 shows the same slow behavior. Actually pressing "down arrow" on my rig is so slow, it seems to lock up the PC. (W2k)
Interestingly, if you capture the "up" and "down" arrows with a filter event, there is no slowdown! Maybe you can used the attached rough draft (LabVIEW 7.0) to improve the UI experience to the user until NI fixes the issue.
Enjoy!
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Tableaccess.vi 266 KB -
The problem is with the new operating system and sending photo via email when used in my iPad.
From photo I selected 3 photos to send via email. I choose the upload key and choose to send by email. Typing text on the email is very slow. This is solved by saving the email as a draft and opening the email again from mail.
Can you amend he system to allow emails to be sent from photo as previously.Have you tried restarting or resetting your iPad?
Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after the iPad shuts down, then press the On/Off button until the Apple logo appears.
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds). Ignore the "Slide to power off" -
Pages gets very slow when working on a long table in a document
Hello!
I'm working with a table in pages09. it goes over pages. as soon as i want to write some text in the different fields, or, worse, CHANGE text in the fields, pages gets very very very slow.
why? what can i do?
i tried the wrap/unwrap-function, but it has no influence.besides, if it's not wrapped in the text, i cannot see the whoe table.
do i make some mistake?
thanks for answers, greetings from zürich
kolibriThe code used to drive tables is quite the same than the one used by Numbers.
It is slow in Numbers so, it's logically slow in Pages.
Yvan KOENIG (from FRANCE mardi 24 mars 2009 20:48:40) -
Simple Select on VBPA using index running very slow
Hello,
We have a very simple selection on the table VBPA:
data:
begin of it_vbeln occurs 100,
vbeln like vbpa-vbeln,
end of it_vbeln.
select vbeln from vbpa
into table it_vbeln
where
kunnr = '##########'
and parvw = 'AG'.
All we're trying to accomplish is to find orders for a given customer number and type.
We have two indices "Z1" and "Z2" which respectively declare: KUNNR, and MANDT, KUNNR, PARVW.
In looking at a sql trace, it says it's using the VBPA~Z2 index, which is expected, and that its estimated costs are very low on the index:
SELECT STATEMENT ( Estimated Costs = 71 , Estimated #Rows = 63 )
2 TABLE ACCESS BY INDEX ROWID VBPA
( Estim. Costs = 71 , Estim. #Rows = 63 )
Estim. CPU-Costs = 553,782 Estim. IO-Costs = 71
1 INDEX RANGE SCAN VBPA~Z2
( Estim. Costs = 3 , Estim. #Rows = 111 )
Search Columns: 3
Estim. CPU-Costs = 43,764 Estim. IO-Costs = 3
Despite declaring that it will do an index range scan, in SM51 it shows as Sequential Read (Table Scan?) and takes a VERY long time to return, about 60 - 120 seconds.
Since this is needed for a user exit that will be run during order creation, it needs to occur MUCH faster. Our entries in VBPA number above 10 million records currently.
Can anyone suggest either why the index does not appear to be helping (it takes just as long without the index), or perhaps another method for finding the orders for a given customer number.
Thank you,
RandyHi Randy,
I suggest you skip the attempts to speed up selecting on VBPA, but rather look into using table VAKPA for finding sales documents for a given partner number.
Greetings
Thomas -
Oracle table insertion is very slow - Very Imp
I have a oracle 9i db installed on Windows 2000 Adv. Server. Server is single processor ,2GB RAM.
and I have a table is have one long raw field & 4 other fields. It contails 10k records. and table is indexed.
I have an application is VB using ADOs I connected to Oracle db. I am saving binary file to long raw field. For me retreival is very fast and when i am inserting the record it is very slow. It is taking 4min for one record.
Please help me to solve this issueIs it possible for your capture the execution plan, as well as session wait events?
If you have buffer busy waits, and not using ASSM (Automatic Segemtn Storage Management), playing with free list also helps.
Jaffar
Maybe you are looking for
-
Excel in background with formating option
Hi, Is it possible to add logo, column width to excel in background. My requirement is to send excel as a attachment.This program run in background where i need to send excel as attachement via mail with logo and column width and demicals formattin
-
Buenas, resulta que mi empresa ha intentado comprar Flash Builder 4.6 y Adobe nos ha obligado a comprar la versión 4.7 porque la 4.6 decían que no la vendían. Estoy teniendo un problema con la 4.7 de que la memoria utilizada por el ejecutable empiez
-
I need to update Mac App Store. I can't install it. It requires OS X v.10.6.7 but I have 10.6.8. What can I do?
-
Windows 8 pro 64 bit compatibility
Hello i Have recently installed windows pro 64 bit for my hp pavillion 15 p-112ne and im having an issue with my network controller and i need a driver The hardware ids is: PCI\VEN_14E4&DEV_4365&SUBSYS_2230103C&REV_01 PCI\VEN_14E4&DEV_4365&SUBSYS_2
-
I've LOST my "add to bookmarks" setting and cannot put additional items in my bookmarks
When I have an item that I want to bookmark, I press "Bookmarks" on my toolbar. The first item used to say "add to bookmarks" Now it just lists my bookmark items so I can't add any additional items to my bookmark pages