Ridicuouls early optimizations

How many objects in memory are too many so as to justify changing the desing?
Some people think thousands is too much and they start implementing logic in stored procedures and using temporary tables to store results so they minimize the amount of objects they keep in memory.
I had to rewrite from scratch a whole module of a web application just because there was a change in the way a report had to be generated. I decided to make the whole calculation in memory with POJOs. I know I'm extremist :-)
Before the process required:
- A 147 line SQL query that stored a intermediate result in a 20 column table
- 4 stored procedures to do a lot of things in a way it made it impossible to reuse anything.
- A separate stored procedure called elsewhere that precalculated some data.
- The report itself took about a minute to execute or so and required about 100 lines of java code in a struts action.
After the rewrite we have:
- One POJO that does all the calculation (with collaborating with other POJOs, of course).
- It takes 5 seconds.
I think early optimization is evil.

How many objects in memory are too many so as to
justify changing the desing?I do it when I have data that tells me I have too many.
Some people think thousands is too much and they
start implementing logic in stored procedures and
using temporary tables to store results so they
minimize the amount of objects they keep in memory.If you've got 2GB of memory, what are 1000s?
It's not just # of objects, it's # of objects per session times the number of simultaneous sessions. Not many sites are used by just one person at a time.
I had to rewrite from scratch a whole module of a web
application just because there was a change in the
way a report had to be generated. I decided to make
the whole calculation in memory with POJOs. I know
I'm extremist :-)
Before the process required:
- A 147 line SQL query that stored a intermediate
result in a 20 column table
- 4 stored procedures to do a lot of things in a way
it made it impossible to reuse anything.
- A separate stored procedure called elsewhere that
precalculated some data.
- The report itself took about a minute to execute or
so and required about 100 lines of java code in a
struts action.
After the rewrite we have:
- One POJO that does all the calculation (with
collaborating with other POJOs, of course).
- It takes 5 seconds.
I think early optimization is evil.Sounds like you did a pretty nice job.
Have you load tested it to see how many simultaneous users you can handle?
%

Similar Messages

  • Advise on ClassIndicator, using an integer

    Hi all,
    the default ClassIndicator is in-class-name which generate a jdoclass column
    with the entire classname string in it. If this would be an integer field,
    it would not only save quite some storage space, but I assume would also be
    better in performance. My questions:
    - Does anyone have experience with this and if so, is there a noticable
    performance increase?
    - If I would use the Metadata Value Indicator, does this mean that I need to
    mannually add an in integer column to each class in the .mapping file and
    specificy the integer value for each class in the .jdo file, next to summing
    up all classes in the kodo.PersistenceClassList?
    - The manual writes about a custom class indicator. It mentions an example
    in the ormmapping directory, but I cant really find this. Would it be
    difficult to write an indicator that uses integers and works just like the
    in-class-name indicator, so without manual intervention. I assume it would
    be best to subclass InClassNameClassIndicator where I maintain a map of
    class to integers?
    kind regards,
    Christiaan

    Hi Dave,
    I succeeded in creating an IntegerClassIndicator which was actually pretty
    easy to do. Thanks for the info!
    "Dave" <[email protected]> wrote in message
    news:[email protected]...
    Hi Christiaan,
    I agree, it would be good to have a class extension that allows one to
    specify the column name for metadata-value class indicators. I've
    entered your suggestion as a feature request in Bugzilla at
    http://bugzilla.solarmetric.com/show_bug.cgi?id=1232
    As to the performance concern, I would not worry too much about it,
    unless you have metrics that indicate that it is a problem. The
    DataCache can boost performance a great deal (assuming that you use
    optimistic transactions). Any hit that you take from overly long keys
    is not likely to be significant.
    As a rule of thumb, try to avoid early optimization unless you're
    implementing a low cost, high probability optimization, a.k.a. "a best
    practice."
    Best wishes,
    David
    On Wed, 30 Nov 2005 10:48:01 +0100, "Christiaan" <[email protected]>
    wrote:
    Thanks for the answer Dave. I am actually not really keen on explicitly
    tweaking the Mapping file, I'd rather have this entirely generated by
    kodo.
    I also noticed that the DataCache used the same combination of classname +
    '' - " + id as a key for identifying objects, which is a pretty huge
    string
    which doesnt make it really performant in a HashMap. Do you know if these
    two are related? So if I change the indicator to integer, the DataCache
    will
    use that same integer as a key.
    Btw, do you know of any example of implementing a custom ClassIndicator?
    "Dave" <[email protected]> wrote in message
    news:[email protected]...
    Hi Christiaan,
    First of all, you can specify "none" as the jdbc-class-ind-name value
    for any classes that are not part of an inheritance tree of data
    classes. The indicator is only needed when the information loaded
    from the database comes from a table (or tables) that store state for
    more than one class. You can't get any faster than not having it at
    all!
    Second, if you use the MetaData indicator (value for
    "jdbc-class-ind-name" is "metadata-value"), then you specify in the
    mapping file the column in the db table that will have the indicator
    constant. This works very much like the in-class-name indicator,
    except that you associate a name (of your choosing) with the class in
    the metadata, and you have to explicitly tweak your mapping file. See
    the example in the doc at
    http://www.solarmetric.com/Software/Documentation/latest/docs/ref_guide_mapping_classind.html#metadata-value
    Hope this helps,
    David Ezzio
    If you use the Meta
    On Fri, 25 Nov 2005 15:05:00 +0100, "Christiaan" <[email protected]>
    wrote:
    Hi all,
    the default ClassIndicator is in-class-name which generate a jdoclass
    column
    with the entire classname string in it. If this would be an integer
    field,
    it would not only save quite some storage space, but I assume would also
    be
    better in performance. My questions:
    - Does anyone have experience with this and if so, is there a noticable
    performance increase?
    - If I would use the Metadata Value Indicator, does this mean that I
    need
    to
    mannually add an in integer column to each class in the .mapping file
    and
    specificy the integer value for each class in the .jdo file, next to
    summing
    up all classes in the kodo.PersistenceClassList?
    - The manual writes about a custom class indicator. It mentions an
    example
    in the ormmapping directory, but I cant really find this. Would it be
    difficult to write an indicator that uses integers and works just like
    the
    in-class-name indicator, so without manual intervention. I assume it
    would
    be best to subclass InClassNameClassIndicator where I maintain a map of
    class to integers?
    kind regards,
    Christiaan

  • Early 2011 MacBook Pro incredibly slow after installing Mavericks

    I'm really hoping someone can help me out. As per the subject line, I installed Mavericks on day one (and learned my lesson!).
    Since installing Mavericks my MacBook Pro runs incredibly slow. If I open the Mail App and Safari - it almost grinds to a halt. I have the "Memory Clean" App which I now have to run constantly (it appears to help a little) and I try to only launch one app at a time where possible, but it's not really pratical.
    As an aside, my MacBook ran really well with Mountain Lion, so there's little doubt to my mind that Mavericks is the culprit.
    I'd be eternally grateful for any help & advice :-)
    I spotted other people advise running EtreCheck, here are my results:
    Hardware Information:
              MacBook Pro (13-inch, Early 2011)
              MacBook Pro - model: MacBookPro8,1
              1 2.3 GHz Intel Core i5 CPU: 2 cores
              4 GB RAM
    Video Information:
              Intel HD Graphics 3000 - VRAM: 384 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 0 days 0:13:54
    Disk Information:
              Hitachi HTS545032B9A302 disk0 : (320.07 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        Macintosh HD (disk0s2) /: 319.21 GB (33.32 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. thunderbolt_bus
    Kernel Extensions:
              com.globaldelight.driver.BoomDevice          (1.1 - SDK 10.9)
              net.telestream.driver.TelestreamAudio          (1.1.0 - SDK 10.8)
    Startup Items:
              Jaksta: Path: /Library/StartupItems/Jaksta
    Problem System Launch Daemons:
              [failed] com.apple.wdhelper.plist 3rd-Party support link
    Problem System Launch Agents:
    Launch Daemons:
              [loaded] com.adobe.fpsaud.plist 3rd-Party support link
              [loaded] com.bourgeoisbits.cloak.cloakd.plist 3rd-Party support link
              [loaded] com.bourgeoisbits.cloak.cloakproxyd.plist 3rd-Party support link
              [loaded] com.google.keystone.daemon.plist 3rd-Party support link
              [loaded] com.macpaw.CleanMyMac2.Agent.plist 3rd-Party support link
    Launch Agents:
              [loaded] com.amazon.sendtokindle.launcher.plist 3rd-Party support link
              [loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Launch Agents:
              [loaded] com.macpaw.CleanMyMac2Helper.diskSpaceWatcher.plist 3rd-Party support link
              [loaded] com.macpaw.CleanMyMac2Helper.scheduledScan.plist 3rd-Party support link
              [loaded] com.macpaw.CleanMyMac2Helper.trashWatcher.plist 3rd-Party support link
    User Login Items:
              Boom
              PopClip
              Caffeine
              Fantastical
              AppTrap
              Dropbox
              Alfred 2
              Cloak
              ScreenFlowHelper
              Google Chrome
    Internet Plug-ins:
              o1dbrowserplugin: Version: 3.18.3.12840 3rd-Party support link
              SpeedDownload Browser Plugin: Version: 2.1.5 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              Flip4Mac WMV Plugin: Version: 2.4.1.4 3rd-Party support link
              AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 3rd-Party support link
              Silverlight: Version: 5.1.10411.0 - SDK 10.6 3rd-Party support link
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              QuickTime Plugin: Version: 7.7.3
              googletalkbrowserplugin: Version: 3.18.3.12840 3rd-Party support link
              npgtpo3dautoplugin: Version: 0.1.44.28 - SDK 10.5 3rd-Party support link
              iPhotoPhotocast: Version: 7.0 - SDK 10.8
              JavaAppletPlugin: Version: 14.8.0 - SDK 10.9 Outdated! Update
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    User Internet Plug-ins:
              CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 3rd-Party support link
              EMusic: Version: EMusic 1.0.0 3rd-Party support link
    3rd Party Preference Panes:
              AppTrap  3rd-Party support link
              Flash Player  3rd-Party support link
              Flip4Mac WMV  3rd-Party support link
              Hazel  3rd-Party support link
              Perian  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              /Applications/iWork '09
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Attachment Tamer Helper:          Version: 3.1.2 - SDK 10.5 3rd-Party support link
                        /Users/derricksutton/Library/Mail/Bundles (Disabled)/Attachment Tamer.mailbundle/Contents/Resources/Attachment Tamer Helper.app
              Nisus Thesaurus:          Version: 1.1 - SDK 10.4 3rd-Party support link
              Amazon MP3 Downloader:          Version: INFO_PLIST_VERSION - SDK 10.4 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Mobile backups: ON
              Auto backup: YES
              Volumes being backed up:
                        Macintosh HD: Disk size: 297.29 GB Disk used: 266.26 GB
              Destinations:
                        Seagate Expansion Drive [Local] (Last used)
                        Total size: 465.44 GB
                        Total number of backups: 10
                        Oldest backup: 2013-09-21 16:05:10 +0000
                        Last backup: 2013-12-31 20:05:10 +0000
                        Size of backup disk: Too small
                                  Backup size 465.44 GB < (Disk used 266.26 GB X 3)
              Time Machine details may not be accurate.
              All volumes being backed up may not be listed.
    Top Processes by CPU:
                  28%          WindowServer
                   5%          Google Chrome
                   2%          Dock
                   1%          Fantastical
                   1%          hidd
    Top Processes by Memory:
              135 MB          Google Chrome Helper
              98 MB          mds_stores
              90 MB          Finder
              86 MB          Google Chrome
              61 MB          EtreCheck
    Virtual Memory Information:
              612 MB          Free RAM
              1.47 GB          Active RAM
              601 MB          Inactive RAM
              1.04 GB          Wired RAM
              523 MB          Page-ins
              2 MB          Page-outs

    CleanMyMac is probably your problem.
    CleanMyMac is crapware.
    Crapware is anything that purports to "optimize",  "clean", "accelerate", "monitor", or "protect" your Mac. These apps are unnecessary, poorly written, overpriced (if they were free, they'd still be overpriced), and harmful. The people who sell this stuff know this, but they keep selling it because people keep buying it. They can damage your OS and be difficult to uninstall.
    I would try to uninstall it, but if that fails, you may have to erase your HD and do a clean install.

  • Upgrade button missing in maintenance optimizer of Solution manager

    Hi,
    We are going to perform upgrade R/3 4.7*110 Non uniocde to ERP 6.0 EHP non unicode.
    We used SAP EHP 1 for SAP Solution Manager 7.0 and support packake for SAP EHP 1 for SAP Solution Manager 7.0 is 24.
    Applied following OSS notes  pertaining to MOPZ  :
    0001450757
    0001461849
    0001485385
    0001548530
    0001590226
    COnfigured using tx code SMSY - Product System is SAP ERP and product version is SAP ERP 2004.
    Created logical components and assigned to <SID> of R/3 4.7 Development system.
    Then created solution and configured solution landscape  . Logical component was assigned to solution landscape.
    Then clicked on "Create new Optimizer transaction"
    Then select product version : ERP 2004
    Then select Product system  and selected <SID>.
    But  only "maintenance" button was displayed.
    However "Upgrade with enhancement package" button is not showing.
    Please help us the solution.
    Thanks
    ap

    A Prasad Rao wrote:
    Hi Sunny
    > For R/3 4.7*110 product name is ERP and product version is ERP 2004
    >
    >  I want upgrade button or upgrade with Enhancement package button should appear
    >
    > It seems we need to apply some OSS notes but coul not find anything becasue SP stack  for solman installed was 24.
    >
    > Please help
    > Thanks and Regards
    > APR
    As I said earlier, you need to register it as ERP 6.0 only to get Enhancement Package installation button. There is no other option for it. If you want to confirm then check How to install EHP4 guide on http://service.sap.com/erp-ehp.
    Thanks
    Sunny

  • I am unable to optimize my album art for my iPod.

    When I attempted to optimize my album art in iTunes (by disabling album art and re-enabling it, used to make browsing within the iPod faster), it is always interrupeted by "the iPod cannot be updated. An unknown error occured. (-50)"
    Any ideas as to why?

    Normally artwork recovered with iTunes is stored as a separate artwork file and iTunes refers to that file to display artwork when you click on a track.  However, if you then copy the file to another player the artwork file is left behind and the track will not display the artwork on the other player.  To get around this it is possible to embed the artwork in the music file itself so it always travels with the file.  Artwork can be embedded by you or files from third party sources may arrive with embedded artwork.  iTunes apparently now won't replace artwork for such files.  You can accomplish this by completely deleting artwork for a file or set of files in Get Info, then getting iTunes to fetch artwork which will then be set as a reference file rather than being embedded.
    I use an old iTunes so unless you are using an ancient iTunes it won't help for me to give you great details.  To erase artwork I simply get info on a series of files and check the box next to the artwork box without adding any artwork and close.  To do it for  single file I Get Info, go to the artwork display tab and click delete.  Here's a Windows reference for a newer iTunes (but the "old Get Info" reference is for early iTunes 12 and no longer works with newer):I cannot delete embedded album artwork in iTunes 12

  • What happened to "weighted optimization" in CS4

    In Photoshop CS3 and earlier, weighted optimization of JPEGs could be achieved by using the "Use channel to modify quality setting" button just to the right of the Quality setting in the Save for Web and Devices dialog box. This option no longer appears in Photoshop CS4. Does anyone know what happened to it or what can be used in its place in CS4?

    hey but what about the lots of users who find this functionality very cool & useful indeed?
    Is there a work around (I mean a simple & practical one)? Is there a compensating 3rd party plug-in?
    Kirk

  • Optimizing built application performance in LV 2012 (and earlier)

    There's a new help topic in the LabVIEW 2012 help called Optimizing Execution Speed for Built Applications.  If you're interested in the runtime performance of your built applications (EXEs, DLLs, etc.), I'd recommend taking a look.
    Most of the steps apply to earlier versions of LabVIEW as well - just ignore the steps that mention the "compiler optimization threshold".
    Greg Stoll
    LabVIEW R&D
    Greg Stoll
    LabVIEW R&D

    If the application is running on a standalone computer with no access to the internet, then the aplication may be taking a really long time to load. This is because Windows is trying to check the applicaton's signature over the internet when there is no internet connection.
    The solution to this problem is found here:
    http://digital.ni.com/public.nsf/allkb/9A7E2F34EC9DDEDE86257A09002A9E14

  • The Full Optimization & Lite Optimization Data Manager packages are failing

    Hi,
    The Full Optimization and Lite Optimization Data Manager packages are failing with the following message "An Error occured while querying for the webfolders path".
    Can anyone had similar issue earlier, please let me know how can we rectify the issue.
    Thanks,
    Vamshi Krishna

    Hi,
    Does the Full Optimize work from the Administration Console directly?
    If it's the case, delete the scheduled package for Full Optimize every night (in both eData -> Package Schedule Status and in the Scheduled Tasks on your server Control Panel -> Scheduled Tasks), and then try to reschedule it from scratch.
    If it's not solving your problem, I would check if there are some "wrong" records into the FACT and FAC2 tables.
    After that, I would also check if the tblAppOptimize is having other values than 0. For all applications, you should have a 0 there.
    Hope this will help you..
    Best Regards,
    Patrick

  • Optimizer mode in oracle 10g

    what is the difference between setting optimizer mode in oracle 10g
    optimizer_mode=choose
    optimizer_mode=all_rows

    user446367 wrote:
    what i have to set for the below parameters . any idea ?
    optimizer_index_caching
    optimizer_index_cost_adjIn general you would leave them set at the default value in 10g (and probably, in most earlier versions, for most cases as well). Even if you were to change them, asking for specific values on an internet forum is rather asking for trouble, it's not dissimilar to asking "what should I set for the parameter processes?" A reasonable value will be application dependent.
    The first parameter reduces the cost of some types of indexed access by assuming that only the specified percentage of index i/o actually results in a physical I/O and therefore only that percentage of the io cost is taken into account. By contrast all tablescan access and the other types of indexed access are assumed to be uncached and therefore need costing.
    The second parameter just arbitrarily scales indexed access path costings.
    You could argue, and some have, that you could calculate a cache hit ratio for index blocks in much the same way as you can calculate a cache hit ratio generally and then set the first parameter to this value. The standout problems with this approach are
    1) It applies to all matching statements and objects not just your problem ones.
    2) It doesn't necessarily even apply to your problem statements.
    3) It doesn't have anything to do with query duration per se, just efficiency of one particular access path.
    4) People tend to choose to round costs down and make the likelihood of two plans getting the same cost and being chosen on a tiebreaker basis higher.
    The second parameter just asks you how much you like the idea of indexes generally. If you are going to change it pick a family members age or something - it'll make you smile every time you see it.
    Niall Litchfield
    http://www.orawin.info/

  • Two issues: Runtime error when trying to Reduce Size or Optimize File. And navigation in some files is VERY SLOW.

    I haven't figured out if there is a pattern here, as of yet.
    This happens with larger files (1500 pages and so forth) and not all the time. 
    - Bookmarks may take up to 4-5 seconds to go to its page.  Scrolling up and down pages is just as painfully slow.
    Even when I break the big file into smaller sections, the navigation remains slower than molasses.  
    - When I try to Optimize certain files, or Reduce their size, I get a Runtime Error. I have disable the Updater (I read this could be an issue) but that made no difference.  I have also broken the larger files into 2 or 3 pieces.  One of the pieces may work out well (I can optimize and so forth) but the other(s) may not.
    Thank you.
    PS: I use Windows XP Pro, Service Pack 3.  I have requested an upgrade (several times) but my wishes are not their command, I am afraid.

    HI ,Thanks for your response. That was an error in the code I posted, but wasn't the error I was trying to solve. Once correcting that error you pointed out I am getting the problems not when I send a plain text email like:
              if(!sendmultipart)
                 // send a plain text message
                 msg.setContent(msgText, "text/plain");
              }but when I try and send multipart messages doing this:
              else
                 // send a multipart message// create and fill the first message part
                       MimeBodyPart mbp1 = new MimeBodyPart();
         mbp1.setText(msgText);
          // create and fill the second message part
         MimeBodyPart mbp3 = new MimeBodyPart();
         // attach the file to the message
         FileDataSource fds = new FileDataSource(soundfile);
         mbp3.setDataHandler(new DataHandler(fds));
         mbp3.setFileName(fds.getName());
                       Multipart mp = new MimeMultipart();
         //adds the text to the message
          mp.addBodyPart(mbp1);
          //adds the attachment to the message
          mp.addBodyPart(mbp3);
           // adds the content to the message
          msg.setContent(mp);
         }So i get the error when executing the else branch.
    Can you spot any errors here? I get the same error as mentioned earlier.
    Thanks a lot,
    Jess

  • Improving performace for a Rule Based Optimizer DB

    Hi,
    I am looking for information on improving the current performance of an ancient 35GB Oracle 7.3.4 using RULE based optimizer mode. It is using 160 MB SGA and the physical memory on the system is 512MB RAM.
    As of now, all the major tasks which take time, are run after peak hours so that the 130 user sessions are not affected significantly.
    But recently am told some procedures take too long to execute ( procedure has to do with truncating tables and re-populating data into it ) and I do see 54% of the pie chart for WAITS are for "sequential reads" followed by "scattered reads" of 36%. There are a couple of large tables of around 4GB in this DB.
    Autotrace doesn't help me much in terms of getting an explain plan of slow queries since COST option doesnt show up and am trying to find ways of improving the performance of DB in general.
    Apart from the "redo log space requests" which I run into frequently (which btw is something I am trying to resolve ..thanks to some of you) I dont see much info on exactly how to proceed.
    Is there any info that I can look towards in terms of improving performance on this rule based optimizer DB ? Or is identifying the top sql's in terms of buffer gets the only way to tune ?
    Thank you for any suggestions provided.

    Thanks Hemant.
    This is for a 15 minute internal under moderate load early this morning.
    Statistic                   Total        Per Transact Per Logon    Per Second 
    CR blocks created                    275          .95         5.19          .29
    Current blocks converted fo           10          .03          .19          .01
    DBWR buffers scanned               74600       258.13      1407.55        78.44
    DBWR free buffers found            74251       256.92      1400.96        78.08
    DBWR lru scans                       607          2.1        11.45          .64
    DBWR make free requests              607          2.1        11.45          .64
    DBWR summed scan depth             74600       258.13      1407.55        78.44
    DBWR timeouts                        273          .94         5.15          .29
    OS Integral shared text siz   1362952204   4716097.59  25716079.32   1433177.92
    OS Integral unshared data s    308759380   1068371.56   5825648.68    324668.12
    OS Involuntary context swit       310493      1074.37      5858.36       326.49
    OS Maximum resident set siz       339968      1176.36      6414.49       357.48
    OS Page faults                      3434        11.88        64.79         3.61
    OS Page reclaims                    6272         21.7       118.34          6.6
    OS System time used                19157        66.29       361.45        20.14
    OS User time used                 195036       674.87      3679.92       205.09
    OS Voluntary context switch        21586        74.69       407.28         22.7
    SQL*Net roundtrips to/from         16250        56.23        306.6        17.09
    SQL*Net roundtrips to/from           424         1.47            8          .45
    background timeouts                  646         2.24        12.19          .68
    bytes received via SQL*Net        814224      2817.38     15362.72       856.18
    bytes received via SQL*Net         24470        84.67        461.7        25.73
    bytes sent via SQL*Net to c       832836      2881.79     15713.89       875.75
    bytes sent via SQL*Net to d        42713        147.8       805.91        44.91
    calls to get snapshot scn:         17103        59.18        322.7        17.98
    calls to kcmgas                      381         1.32         7.19           .4
    calls to kcmgcs                      228          .79          4.3          .24
    calls to kcmgrs                    20845        72.13        393.3        21.92
    cleanouts and rollbacks - c           86           .3         1.62          .09
    cleanouts only - consistent           40          .14          .75          .04
    cluster key scan block gets         1051         3.64        19.83         1.11
    cluster key scans                    376          1.3         7.09           .4
    commit cleanout failures: c           18          .06          .34          .02
    commit cleanout number succ         2406         8.33         45.4         2.53
    consistent changes                   588         2.03        11.09          .62
    consistent gets                   929408      3215.94        17536        977.3
    cursor authentications              1746         6.04        32.94         1.84
    data blocks consistent read          588         2.03        11.09          .62
    db block changes                   20613        71.33       388.92        21.68
    db block gets                      40646       140.64       766.91        42.74
    deferred (CURRENT) block cl          668         2.31         12.6           .7
    dirty buffers inspected                3          .01          .06            0
    enqueue conversions                  424         1.47            8          .45
    enqueue releases                    1981         6.85        37.38         2.08
    enqueue requests                    1977         6.84         37.3         2.08
    execute count                      20691         71.6        390.4        21.76
    free buffer inspected               2264         7.83        42.72         2.38
    free buffer requested             490899      1698.61      9262.25       516.19
    immediate (CR) block cleano          126          .44         2.38          .13
    immediate (CURRENT) block c          658         2.28        12.42          .69
    logons cumulative                     53          .18            1          .06
    logons current                         1            0          .02            0
    messages received                    963         3.33        18.17         1.01
    messages sent                        963         3.33        18.17         1.01
    no work - consistent read g       905734      3134.03     17089.32        952.4
    opened cursors cumulative           2701         9.35        50.96         2.84
    opened cursors current               147          .51         2.77          .15
    parse count                         2733         9.46        51.57         2.87
    physical reads                    490258      1696.39      9250.15       515.52
    physical writes                     2265         7.84        42.74         2.38
    recursive calls                    37296       129.05        703.7        39.22
    redo blocks written                 5222        18.07        98.53         5.49
    redo entries                       10575        36.59       199.53        11.12
    redo size                        2498156      8644.14     47135.02      2626.87
    redo small copies                  10575        36.59       199.53        11.12
    redo synch writes                    238          .82         4.49          .25
    redo wastage                      104974       363.23      1980.64       110.38
    redo writes                          422         1.46         7.96          .44
    rollback changes - undo rec            1            0          .02            0
    rollbacks only - consistent          200          .69         3.77          .21
    session logical reads             969453      3354.51     18291.57       1019.4
    session pga memory              35597936    123176.25    671659.17     37432.11
    session pga memory max          35579576    123112.72    671312.75      37412.8
    session uga memory               2729196      9443.58     51494.26      2869.82
    session uga memory max          20580712     71213.54    388315.32     21641.13
    sorts (memory)                      1091         3.78        20.58         1.15
    sorts (rows)                       12249        42.38       231.11        12.88
    table fetch by rowid               57246       198.08      1080.11         60.2
    table fetch continued row            111          .38         2.09          .12
    table scan blocks gotten          763421       2641.6     14404.17       802.76
    table scan rows gotten          13740187      47543.9    259248.81     14448.15
    table scans (long tables)            902         3.12        17.02          .95
    table scans (short tables)          4614        15.97        87.06         4.85
    total number commit cleanou         2489         8.61        46.96         2.62
    transaction rollbacks                  1            0          .02            0
    user calls                         15266        52.82       288.04        16.05
    user commits                         289            1         5.45           .3
    user rollbacks                        23          .08          .43          .02
    write requests                       331         1.15         6.25          .35Wait Events :
    Event Name                       Count         Total Time    Avg Time    
    SQL*Net break/reset to client                7             0             0
    SQL*Net message from client              16383             0             0
    SQL*Net message from dblink                424             0             0
    SQL*Net message to client                16380             0             0
    SQL*Net message to dblink                  424             0             0
    SQL*Net more data from client                1             0             0
    SQL*Net more data to client                 24             0             0
    buffer busy waits                          169             0             0
    control file sequential read                55             0             0
    db file scattered read                   74788             0             0
    db file sequential read                 176241             0             0
    latch free                                6134             0             0
    log file sync                              225             0             0
    rdbms ipc message                           10             0             0
    write complete waits                         4             0             0I did enable the timed_stats for the session but dont know why the times are 0's. Since I cant bounce the instance until weekend, cant enable the parameter in init.ora as well.

  • PDF Optimizer Settings: Where Are They Saved?

    PDF Optimizer Settings: Where Are They Saved?
    That is, the ones that you create and then Save.
    Also the default one which came along Acrobat Pro (i.e. Standard etc)
    Thanks

    They are stored in the Acrobat User Preferences Area.  The same location is used for Pro, Standard, and Reader.  But the exact location is OS dependant.
    Open up the JavaScript Console window and run this line of code. (instructions at the links below)
    app.getPath("user","preferences");
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)

  • Problem with Maintenance Optimizer - Solman EHP1

    Hi All,
    I have a solution manager 7.0 ehp1 system and maintenance optimizer does not work at all.
    Initial configurarion and Basic configuration has been done - Tcode : Solman_Setup
    A solution has been created and systems have been assigned to it, however when i launch create new maintenance
    transaction it shows us the solution and the systems assigned under it.If i select our Production system and click on next
    it comes up an error, saying the table does not contain any data. Do i need to do the SLM configuration for MOPZ to work?
    Has anyone seen  this error earlier. Any inputs would be of great help.
    Regards,
    Ershad Ahmed.

    Hi,
    Though the error does not give much insight. There are some warnings which tells that configuration has to be done
    Please find the warnings attached in  the email.
    Not able to find an active SLM for selected managed systems
    No configured SLM
    No common SLM system is regsitered for Managed Systems
    The system / systems - SID have not beed registered in SLM
    Instance -type missing in SMSY for an application server instance of system .
    Regards,
    Ershad Ahmed

  • How to optimize this select statement  its a simple select....

    how to optimize this select statement  as the records in earlier table is abt i million
    and this simplet select statement is not executing and taking lot of time
      SELECT  guid  
                    stcts      
      INTO table gt_corcts
      FROM   corcts
      FOR all entries in gt_mege
      WHERE  /sapsll/corcts~stcts = gt_mege-ctsex
      and /sapsll/corcts~guid_pobj = gt_Sagmeld-guid_pobj.
    regards
    Arora

    Hi Arora,
    Using Package size is very simple and you can avoid the time out and as well as the problem because of memory.  Some time if you have too many records in the internal table, then you will get a short dump called TSV_TNEW_PAGE_ALLOC_FAILED.
    Below is the sample code.
    DATA p_size = 50000
    SELECT field1 field2 field3
       INTO TABLE itab1 PACKAGE SIZE p_size
       FROM dtab
       WHERE <condition>
    Other logic or process on the internal table itab1
    FREE itab1.
    ENDSELECT.
    Here the only problem is you have to put the ENDSELECT.
    How it works
    In the first select it will select 50000 records ( or the p_size you gave).  That will be in the internal table itab1.
    In the second select it will clear the 50000 records already there and append next 50000 records from the database table.
    So care should be taken to do all the logic or process with in select and endselect.
    Some ABAP standards may not allow you to use select-endselect.  But this is the best way to handle huge data without short dumps and memory related problems. 
    I am using this approach.  My data is much more huge than yours.  At an average of atleast 5 millions records per select.
    Good luck and hope this help you.
    Regards,
    Kasthuri Rangan Srinivasan

  • Load Optimization

    Hi Experts,
    Can you please tell me the load optimization techniques in BW. I need to enhance the performance of a process chain which used to take less time earlier for a particular but takes more time for very few extra records in addition to the previous records
    Please suggest if i can do something

    Hi,
    Please find below some of the performance optimization techniques which may help u...
    1) Increase the parallel processing during extraction.
    2) Selective loading.
    3) Every job will be having a priority (A, B, C u2013 A being the highest and C being the lowest), choose this based on your scenario.
    4) Check with BASIS for the sizing of your server.
    5) We can increase the number of background processes during data loads. This can be done by making dialog processes as Background processes.
    For this you need BASIS inputs. (This is done in some profile settings by making the system behave differently during loads. (something like day mode/night mode))
    6) There are some maintenance jobs that should run regularly in any SAP box to ensure proper functioning. Check them.
    7) Use of start routines is preferred instead of update routines.
    Regards,
    KK.

Maybe you are looking for

  • How do i manually block certain sites or pop-ups? (if i know or dont know site url)

    well lets see i have a pop-up block like everyone else in that has firefox it block pop-up but i still have those few that make it past that is where my rage gets up and i want to troll the crap out of the little mother fu&%ers how can you block them

  • My Macbook Pro doesn't recognize my external hard drive

    I had my external HD attached to my MBpro when I attempted to empty trash. The trash window showed it emptying thousand upon thousands of files (way more than was in the bin) and had a negative sign in front of the number of items being deleted. I ca

  • Can't download itunes on Windows 7

    I can download and install other software, but when I attempt to download iTunes, I receive the 'where do you want to save the installer' dialog, and then nothing. No download, no installer, I just go straight to the 'Thank you for installing' page.

  • Mac OS 10.4.11 and Upgrading

    Hi - I have a MacBook and it is operating on OS 10.4.11. Somehow I lost Firefox Mozilla and now I am unable to download either the current version or old version. Only problem is that my uni course is not compatible with Safari and they say to use Fi

  • CS6 PDF Help file?

    I've looked for an Audition CS6 PDF help file and could not find one anywhere. Does anyone know if one is available? Thank you. Ted