Slow processing

dear folks,
here below is my ad-hoc sql query
SELECT a.ith_po_refno,
a.ith_refno,
a.ith_tdate,
a.ith_vend_code,
a.ith_invno,
pr_whse_name,
pr_whse_code,
cr_acct_name,
ith_bdamt,
(SELECT SUM(b.itd_ibdamt)
FROM itd b,
ith c
WHERE c.ith_refno = b.itd_refno
AND c.ith_po_refno = a.ith_po_refno
AND c.ith_intype = 'R')
totamtr,
(SELECT SUM(d.itd_ibdamt)
FROM itd d,
ith e
WHERE e.ith_refno = d.itd_refno
AND e.ith_po_refno = a.ith_po_refno
AND e.ith_intype = 'Y')
totamty
FROM ith a ,
cr_account,
pr_warehouse
WHERE
a.ith_intype = 'P'
AND a.ith_tdate >= to_date('18/01/2008', 'DD/MM/YYYY')
AND a.ith_tdate <= to_date('18/02/2008', 'DD/MM/YYYY')
AND cr_acct_code = a.ith_vend_code
AND a.ith_ilocn = pr_whse_code
ORDER BY a.ith_add_date ASC
this query runs well in sql developer with 0.0056 secs. the same query takes a longer time in my front end(VB). it takes around 1 minute to process n display it in the list view.
please tel me wat is the problem or how can i optimize the above given query.
thanks all the way
fairozkhan

>how can i optimize the above given query
I'm failing to grasp your logic here. You say you have a query. It runs fast when done via SQL-Developer. The very same query is slow via VB.
Now you want to have suggestions on how to tune the query?
The query is the only constant thing in these two cases. Surely that what is constant is constant. Surely that what is different is resulting in the performance difference?
In other words, it is something that is different between VB and SQL-Developer that results in the very same query to be slower.
It can be that what the VB code does with the results of the query is slow. It can be that the underlaying Oracle driver used by VB has a fetch/array size of 1, and the SQL-Developer a size of a 100. (meaning SQl-Developer fetch data from the Oracle server in bigger and better chunks)
It can be that when you tested it via SQL-Developer, much of the rows to be read where already in the db buffer cache - and when the VB test was done, this data was on disk requiring slow and expensive physical I/O to get it into the buffer cache.
It could be that the SQL-Developer session connected to a dev dabatase (less data) and the VB session to a live database (more data). It could be that the same database are used, but different schemas and thus different environments and scope (which can mean different tables/synonyms/views/FGAC policies/etc)
Or it could sun spots. I heard that these generate a lot of radiation and a burst of these can be "bad" for a computer.
Or it could be that someone step on the network cable to the server throttle the bandwidth when VB was doing its query.
It could be lots of things.. but pointing to the only thing that is common between the two tests, discarding everything else that is different, and saying that which is the same must be causing the difference in performance... I don't get that.
Maybe I just need more coffee?

Similar Messages

  • Slow processing and getting opening errors/warnings

    I've modified the PDF Binder sample to get a plugin that would open PDF's and Tif files, and save them as PDF/A-1b (code below).
    It's working. The problem: it's processing too slow (compared with the Actions batch processing)... and I've been getting warnings/and errors about "The imput file is corrupt or of an unknown/unsupported type" type. This is stopping my batch process until I click OK, and the it continues.
    I am trying to process a few thousand of tif files now. I tried first to use the Batch processing capability built in the Acrobat X... an it works, but only with the first 255 documents in the folder... then gives an "insufficient disk space" message for the rest of the files in the directory.
    So, 2 questions: Does anyone knows why it is so slow processing the tiff files and... how I can make my code "silent" so it does not wait for the OK after the message??
    Thanks in advance.
    The code:
    ADOBE SYSTEMS INCORPORATED
    Copyright (C) 1998-2006 Adobe Systems Incorporated
    All rights reserved.
    NOTICE: Adobe permits you to use, modify, and distribute this file
    in accordance with the terms of the Adobe license agreement
    accompanying it. If you have received this file from a source other
    than Adobe, then your use, modification, or distribution of it
    requires the prior written permission of Adobe.
      \file PDFBinder.cpp
    - Implements a method to convert multiple files into PDFs and bind the PDFs
    into one PDF file. The code shows how to use AVConversionToPDFHandler to
    convert files to PDF and how to use PDDocInsertPages() to combind PDF files.
    // Headers.
    #include <stdio.h>
    #include <ctype.h>
    #ifndef MAC_PLATFORM
    #include <direct.h>
    #include "PIHeaders.h"
    #endif
    // Defines ----------
    // Define this flag to show AVConversionToPDFEnumHandler info. in log file.
    #define SHOW_TOPDF_HANDLER_TYPES   
    // define this flag to use file type filter 
    #define USE_FILE_FILTER   
        Constants/Declarations
    // Message display control.  Ture: display
    ASBool bEcho = true;
    // File location. User can change the following filenames.
    #if WIN_PLATFORM
        const char* STRING_PDFBinderFolder = "C:\\Fairfax\\Adobe\\in";
        const char* STRING_PDFOutputFolder = "C:\\Fairfax\\Adobe\\PDFA";
        const char* FOLDERSYMBOL="\\";
    #endif
    #if MAC_PLATFORM
        const char* STRING_PDFBinderFolder = "/PDFBinder";
        const char* FOLDERSYMBOL="/";
    #endif
    char* OutputPdfFileName = "PDFBinderOutput.pdf";
    char* LogFileName = "PDFProcessLog.txt";
    static ASInt32 gNumToPDFExt;
    static ASInt32 gNumFromPDFExt;
    static AVConversionFromPDFHandler RightHandler;
    const int MAX_FILENAME_LENGTH = 256;
    char sLogFileName[MAX_FILENAME_LENGTH];
    // Filter -----------
    // Filter is a list of file types which can be converted to PDF in this program.
    // Use a filter may fit user's specific needs and ensure a smooth automation process.
    // Of course, the user can turn off the filter in two ways:
    //   (1) gPDFBinderFileFilter = "";
    //   (2) comment out //USE_FILE_FILTER 
    // The filter should be consistent with the Acrobat viewer's menu capability:
    //   Create PDF from multiple files ...
    // Here we put the types which have been tested, but user can expand it.
    const char* gPDFBinderFileFilter = "pdf,tif,tiff,PDF,TIF,TIFF";
    const int MAX_STRING_LENGTH = 2048;
    AVConversionToPDFHandler gHandler;
    // functions in this file.
    int    ConvertAndInsertFileToPDF(ASPathName aspItem, char* aFileName, PDDoc  PDFfile);
    void BindingFileToPDF(ASPathName aPathName, char* aFilename, ASFileSysItemPropsRec nFileAttrb, PDDoc targetPDdDoc, ASPathName outputPathName, int *ipTotal, int *ipConverted);
    ASBool PassPDFBinderFileFilter(char* filename);
    int    ConvertAndSavePDFInTargetFolder(ASPathName aPathName, char* aFileName, PDDoc PDFfile, ASPathName outputPathName);
    char* NewFileName(char *& aFileName);
    // callbacks
    ACCB1 ASBool ACCB2 MyAVConversionToPDFEnumProc(AVConversionToPDFHandler handler, AVConversionEnumProcData data);
    ACCB1 ASBool ACCB2 AVConversionToPDFEnumFindHandler(AVConversionToPDFHandler handler, AVConversionEnumProcData data);
    static ACCB1 ASBool ACCB2 myAVConversionFromPDFEnumProc(AVConversionFromPDFHandler handler, AVConversionEnumProcData data);
        Implementation
    /**    This sample implements a method to convert multiple files into PDF
      and bind the PDFs into one PDF file .
        This sample shows developers how to grammatically implement To-PDF file
      converson functionality.  Basically, the code uses AVConversionToPDFHandler
      to convert files to PDF and PDDocInsertPages()to combine PDF files.
      This plug-in is designed to run from a menu item, and by setting bEcho = false
      it may be run without any graphics user interface on the screen. Therefore, it 
      can be executed from other programs such as C IAC, VB IAC, and JavaScript
      to meet enterprise workflow needs.
        How to run it :
        - This sample adds a menu item "PDF Binder" under the Acrobat SDK submenu. Two ways to
        execute it: 1) click the menu item to run the program using a fixed file location
        hard coded; 2) press the shift key and click the menu item to choose a folder where
        files to be converted are located.
        - Without folder selection, this original code is to convert and bind files in a
        directory    C\test\PDFBinder for Win, or a folder   MacHD:test:PDFBinder for Mac.
        You can copy the test files in the project's testfiles folder to the appropriate location 
        for testing. You may locate files to be converted in another directory/folder, and
        specify the location in the string variable PDFBinderFolder in the code.
        - When you have the files to be converted ready in the specified location,
        run Acrobat 6 menu Advanced->AcrobatSDK->PDF Binder to start the operation.  There are
        echo messages informing you of the operation start and end, but you can change and
        rebuild the code to turn off the display on screen.
        - An output file PDFBinderOutput.pdf in the same location is created
        when the program succeeds. A text log file  PDFBinderLog.txt in the same
        location records the process and results.
        -  You can set bEch = false in the code to turn off any display on the screen.
        This is necessary when you  call the menu function from within other programs
        of C IAC, VB IAC, JavaScript. 
        -  An optional file filter is used to pre-process the files. The filter only allows
        the files with predefined types to be processed. You can change the file type list
        as you wish. Using a filter may ensure a smooth automation process, since you can put
        only well-tested file types in the filter. To turn off the filter, you can set
        gPDFBinderFileFilter = "" or not to define USE_FILE_FILTER 
        - Note this is a sample only, developers need to make further improvement for
        their actual use. For example, you can set up a list of files to use the method for
        the conversion and binding. And you can add code to handle special file types.
          @see AVConversionConvertToPDFWithHandler
        @see AVConversionEnumToPDFConverters
        @see ASFileSysDestroyFolderIterator
        @see PDDocOpen
        @see PDDocClose
        @see PDDocInsertPages
        @see PDDocCreatePage
        @see PDDocDeletePages
        @see PDPageRelease
        @see ASFileSysCreatePathName
        @see ASFileSysFirstFolderItem
        @see ASFileSysNextFolderItem
        @see ASFileSysGetNameFromPath
        @see ASFileSysReleasePath
    ACCB1 void ACCB2 PDFBinderCommand(void*)
        // if the menu item clicked with Shift key pressed down, go to interactive mode.
        // let the user to choose a folder and process all the file in the folder.
        ASText dispText = ASTextNew();
        char PDFBinderFolder[MAX_STRING_LENGTH];
        ASBool shiftKeyIsDown = ((AVSysGetModifiers() & AV_SHIFT) != 0);
        if(shiftKeyIsDown) {
            AVOpenSaveDialogParamsRec dialogParams;
            // Configure the dialog box parameters.
            memset (&dialogParams, 0, sizeof (AVOpenSaveDialogParamsRec));
            dialogParams.size = sizeof(AVOpenSaveDialogParamsRec);
            dialogParams.windowTitle = ASTextFromScriptText("Choose folder with files to bind",kASRomanScript);
            dialogParams.flags |= kAVOpenSaveAllowForeignFileSystems;
            dialogParams.initialFileSys = ASGetDefaultUnicodeFileSys();
            ASPathName thePath;
            ASFileSys fileSys;
            AVAppBeginModal(NULL);
            if(ASBoolToBool(AVAppChooseFolderDialog(&dialogParams, &fileSys, &thePath)) != true){
                AVAppEndModal();
                //AVAlertNote("Failed to select the folder");
                return;
            AVAppEndModal();
    #ifdef WIN_PLATFORM       
            ASFileSysDisplayASTextFromPath(ASGetDefaultUnicodeFileSys(), thePath, dispText);
            ASHostEncoding bestEnc = ASTextGetBestEncoding(dispText, (ASHostEncoding)PDGetHostEncoding());
            strncpy(PDFBinderFolder, ASTextGetEncoded(dispText, bestEnc), MAX_STRING_LENGTH - 1);
    #else       
            ASPlatformPath aspPath;
            ASFileSysAcquirePlatformPath(fileSys, thePath, ASAtomFromString("POSIXPath"), &aspPath);
            strncpy(PDFBinderFolder, (char *)ASPlatformPathGetPOSIXPathPtr(aspPath), MAX_STRING_LENGTH - 1);
            ASFileSysReleasePlatformPath(fileSys, aspPath);
            // remove extra path separator
            char e = PDFBinderFolder[strlen(PDFBinderFolder)-1];
            if(e == ':' || e == '/')
                PDFBinderFolder[strlen(PDFBinderFolder)-1]='\0';
            dispText = ASTextFromScriptText(PDFBinderFolder, kASEUnicodeScript);
    #endif
            ASFileSysReleasePath(fileSys, thePath);
        // Otherwise, the hard coded file path will be used.
        else {
            strcpy(PDFBinderFolder, STRING_PDFBinderFolder);
            dispText = ASTextFromScriptText(PDFBinderFolder, kASRomanScript);
        // instruction message
        char strMsg[MAX_STRING_LENGTH] = "";
        sprintf(strMsg, "This function will convert and process Tiff and PDF files in the selected directory. ");
        strcat(strMsg, " You need to copy your files in C:\\Fairfax\\Adobe\\in directory." );
        strcat(strMsg, " Files will be processed into C:\\Fairfax\\Adobe\\PDFA directory." );
        strcat(strMsg, " If you are ready, click OK to continue, or click Cancel to quit. " );
        strcat(strMsg, " \nNote you can press down Shift key and click the menu item to have a folder selection. " );
        strcat(strMsg, " \nNote you can turn off the echo message by setting bEcho = false and rebuild the code. " );
        if(ASBoolToBool(bEcho)==true){
            ASInt32 choice = AVAlert(ALERT_CAUTION, strMsg, "OK", "Cancel", NULL, true);
            if(choice==2) {
                return;
        // create a new target pdf file with one empty page
        PDDoc TargetPDF = PDDocCreate();
        ASFixedRect mediaBox = { fixedZero, ASInt32ToFixed(792), ASInt32ToFixed(612), fixedZero };
        PDPage emptyPage = PDDocCreatePage (TargetPDF, PDBeforeFirstPage, mediaBox);
        PDPageRelease (emptyPage);
        //     get available headlers and set our file filter
        char ValidExt[MAX_STRING_LENGTH];
        memset(ValidExt, 0, MAX_STRING_LENGTH);
    #ifdef SHOW_TOPDF_HANDLER_TYPES   
        // enumerate AVConversioToPDF handlers to get all available file
        // types which can be converted to PDF.
        AVConversionEnumToPDFConverters(MyAVConversionToPDFEnumProc, (AVConversionEnumProcData) ValidExt);
        //AVAlertNote("Converters Defined");
        //AVAlertNote(ValidExt);
        //AVAlertNote(gPDFBinderFileFilter);
    #endif
    #ifdef USE_FILE_FILTER    
        // set File filter
        strcpy(ValidExt, gPDFBinderFileFilter);
        //AVAlertNote(ValidExt);
    #endif
        // process all files in the directory
        int iNumFiles = 0;
        int iNumFilesConverted = 0;
        char* Done = "Converted";
        char* NotDone = " - ";
        char fileName[MAX_FILENAME_LENGTH+1];
        ASFileSysItemPropsRec props;
        ASFolderIterator iter;
        ASPathName aspItem = NULL;
        memset(&props, 0, sizeof(props));
        props.size = sizeof(props);
        //AVAlertNote("Props Defined");
        ASPathName theFolder = NULL;
        ASFileSys fileSys = NULL;
        DURING
    #ifdef WIN_PLATFORM   
        fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("ASTextPath"), dispText);
        theFolder = ASFileSysCreatePathName (fileSys, ASAtomFromString("ASTextPath"), dispText, 0);
        //AVAlertNote("FileSys and Folder Defined");
    #else
        fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("POSIXPath"), PDFBinderFolder);
        theFolder = ASFileSysCreatePathName (fileSys,
                                ASAtomFromString("POSIXPath"), PDFBinderFolder, 0);
    #endif
        if (theFolder==NULL) {
            //AVAlertNote("Fail to create ASPathName for the selected folder.");
            E_RTRN_VOID
        // Find first file in current directory
        if((iter = ASFileSysFirstFolderItem(fileSys, theFolder, &props, &aspItem))==FALSE) {
            //AVAlertNote("This is either an invalid folder or the folder contains no files.");
            E_RTRN_VOID
        ASFileSysReleasePath(fileSys, theFolder);
        //AVAlertNote("Folder Released");
        // get filename only
        if(ASFileSysGetNameFromPath(fileSys, aspItem, fileName, sizeof(fileName))) {
            E_RTRN_VOID
        HANDLER   
            // exception handling
            char errorMsg[256];
            ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
            if(aspItem!=NULL) ASFileSysReleasePath(fileSys, aspItem);
            if(theFolder!=NULL) ASFileSysReleasePath(fileSys, theFolder);
            // display an error message.
            if(ASBoolToBool(bEcho)==true) {
                AVAlertNote (errorMsg);
            return;
        END_HANDLER
        //AVAlertNote(fileName);
        // go to binding if it's a valid type of file
        if(props.type == kASFileSysFile && PassPDFBinderFileFilter(fileName)) {
            char outFileName[] = "";
            //strcat(outFileName, STRING_PDFOutputFolder);
            //strcat(outFileName, FOLDERSYMBOL);
            //strcat(outFileName, fileName);
            strcat(outFileName, STRING_PDFOutputFolder);
            strcat(outFileName, FOLDERSYMBOL);
            strcat(outFileName, fileName);
            //AVAlertNote(outFileName);
            ASPathName outputFileName = ASFileSysCreatePathName (ASGetDefaultFileSys(), ASAtomFromString("Cstring"), outFileName, 0);
            BindingFileToPDF(aspItem, fileName, props, TargetPDF, outputFileName ,&iNumFiles, &iNumFilesConverted);
            //AVAlertNote("File Processed");
        ASFileSysReleasePath(fileSys, aspItem);
        // process all other files 
        while(ASFileSysNextFolderItem(fileSys, iter, &props, &aspItem)) {
            // get filename only
            if(ASFileSysGetNameFromPath(fileSys, aspItem, fileName, sizeof(fileName))) {
                return;
            // go to binding if it's a valid type of file
            if(props.type == kASFileSysFile && PassPDFBinderFileFilter(fileName))  {
                char outFileName[] = "";
                //strcat(outFileName, STRING_PDFOutputFolder);
                //strcat(outFileName, FOLDERSYMBOL);
                //strcat(outFileName, fileName);
                strcat(outFileName, STRING_PDFOutputFolder);
                strcat(outFileName, FOLDERSYMBOL);
                strcat(outFileName, fileName);
                //AVAlertNote(outFileName);
                ASPathName outputFileName = ASFileSysCreatePathName (ASGetDefaultFileSys(), ASAtomFromString("Cstring"), outFileName, 0);
                BindingFileToPDF(aspItem, fileName, props, TargetPDF, outputFileName, &iNumFiles, &iNumFilesConverted);
                //AVAlertNote("File Processed");
            ASFileSysReleasePath(fileSys, aspItem);
        ASPathName pdfPathName = NULL;
        DURING
        // close the findfile
        ASFileSysDestroyFolderIterator(fileSys, iter);
        // save and close the output pdf file
        // create path
        ASText pathText = ASTextNew();
        ASTextCatMany(
            pathText,
            dispText,
            ASTextFromScriptText(FOLDERSYMBOL, kASRomanScript),
            ASTextFromScriptText(OutputPdfFileName, kASRomanScript),
            NULL);
    #ifdef WIN_PLATFORM
        ASFileSys fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("ASTextPath"), pathText);
        pdfPathName = ASFileSysCreatePathName (fileSys,
                                ASAtomFromString("ASTextPath"), pathText, 0);
    #else
        char path[MAX_STRING_LENGTH];
        strncpy(path, ASTextGetEncoded(pathText,
            ASTextGetBestEncoding(pathText, (ASHostEncoding)PDGetHostEncoding())), MAX_STRING_LENGTH - 1);
        ASFileSys fileSys = ASGetDefaultFileSysForPath(ASAtomFromString("POSIXPath"), path);
        pdfPathName = ASFileSysCreatePathName (fileSys,
                                ASAtomFromString("POSIXPath"), path, 0);   
    #endif
        if(pdfPathName==NULL) {
            E_RTRN_VOID
        // delete the empty page
        if(PDDocGetNumPages(TargetPDF)>1) {
            PDDocDeletePages (TargetPDF, 0,0,NULL, NULL);
        // save
        //PDDocSave (TargetPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized,
        //            pdfPathName, ASGetDefaultUnicodeFileSys(),    NULL, NULL);
        PDDocClose (TargetPDF);
        //ASFileSysReleasePath(fileSys, pdfPathName);
        HANDLER   
            // exception handling
            char errorMsg[256];
            ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
            if(pdfPathName!=NULL) ASFileSysReleasePath(fileSys, pdfPathName);
            // display an error message.
            if(ASBoolToBool(bEcho)==true) {
                AVAlertNote (errorMsg);
            return;
        END_HANDLER
        // use this line to show the massage on screen if you need
        //if(ASBoolToBool(bEcho)==true) {
        AVAlertNote ("Folder Completed. PDF/A Output files generated.");
        return;
    /* ConvertAndInsertFileToPDF
    /** Internal function \n
    ** Convert a file to PDF, then insert it to target PDF file.
    ** @param aFileName IN  char string, filename.
    ** @param PDFfile IN/OUT PDDoc of the target PDF file.
    ** @return 0 if OK, 1 if failed.
    int    ConvertAndInsertFileToPDF(ASPathName aPathName, char* aFileName, PDDoc PDFfile)
        PDDoc tempPDF;
        char* Ext;
        DURING
            // get file extention
            Ext = strrchr(aFileName,'.');
            if(Ext) {
                Ext++;
            else {
                E_RETURN (1);
            // if the file is PDF, open PDDoc
            if(strcmp(Ext,"PDF")==0 || strcmp(Ext,"pdf")==0) {
                tempPDF = PDDocOpen (aPathName, ASGetDefaultFileSys(), NULL, true);
                if(tempPDF==NULL) {
                    PDDocClose(tempPDF);
                    E_RETURN (1);
            // else convert it to PDF
            else
                // let it automatically find right handler for the file and do the job.
                AVConversionStatus stat = AVConversionConvertToPDF
                    (kAVConversionAsyncOkay, //kAVConversionNoFlags
                      aPathName, ASGetDefaultFileSys(), &tempPDF, NULL);
                // check if successful
                if(stat != kAVConversionSuccess) {
                    //AVAlertNote("Cannot convert the file.");
                    E_RETURN (1);
        HANDLER   
            // exception handling
            char errorMsg[256];
            ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
            // display an error message.
            if(ASBoolToBool(bEcho) == true) {
                AVAlertNote (errorMsg);
            return 1;
        END_HANDLER
        // insert new PDF into target PDF
        DURING
            // insert all pages of new pdfc to TargetPDFfile.
            PDDocInsertPages(PDFfile, PDLastPage, tempPDF, 0,
                            PDAllPages, PDInsertAll, NULL, NULL, NULL, NULL);
            PDDocClose(tempPDF);
        HANDLER
             char errorMsg[256];
            ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
            if(ASBoolToBool(bEcho)==true) {
                AVAlertNote(errorMsg);
        END_HANDLER
            if(strcmp(Ext,"doc")==0) {
                char fname[40];
                sprintf(fname,"%s.pdf",aFileName);
                remove(fname);
            return 0;
    /* MyAVConversionToPDFEnumProc
    /** Internal callback function \n
    ** called for every AVConversionToPDFHandler.
    ** get the valid type (file extention) for the conversion. 
    ** @return true.
    ACCB1 ASBool ACCB2 MyAVConversionToPDFEnumProc(AVConversionToPDFHandler handler,
                                                 AVConversionEnumProcData data)
        ASUns16 numFileExt = handler->convFilter.numFileDescs;
        for (int i = 0; i < numFileExt; i++) {
            char* ext = handler->convFilter.fileDescs[i].extension;
            if(strlen(ext)>0) {
                strcat((char*) data, ext);
                strcat((char*) data, ",");
        return true;
    /* this is alternative code to get right conversion handler for a specific file
       to be converted. It works with function AVConversionConvertToPDFWithHandler.
       It's not used now, but kept for user's reference.
    ACCB1 ASBool ACCB2 AVConversionToPDFEnumFindHandler(AVConversionToPDFHandler handler,
                                                 AVConversionEnumProcData data)
        ASUns16 numFileExt = handler->convFilter.numFileDescs;
        for ( int i = 0; i < numFileExt; i++)
            char* ext = handler->convFilter.fileDescs[i].extension;
            if(strlen(ext)) {
                if(!strcmp((char*) data, ext)) {
                    gHandler = handler;
                    return false;
        return true;
    /* BindingFileToPDF
    /** Internal callback function for binding process \n
    ** IN: char* aFilename, ASFileSysItemPropsRec nFileAttrb \n
    **     PDDoc targetPDdDoc, int *ipTotal, \n
    **     int *ipConverted, FILE *logfile \n
    ** OUT: int *ipTotal, int *ipConverted. \n
    void BindingFileToPDF(ASPathName aPathName, char* aFilename, ASFileSysItemPropsRec nFileAttrb, PDDoc targetPDdDoc, ASPathName outputPathName, int *ipTotal, int *ipConverted)
        // ignore system, hidden files, and our target PDF and log file.
        if( nFileAttrb.isHidden 
            || (strcmp(aFilename,".")==0) || (strcmp(aFilename,".." )==0)
            || (strcmp(aFilename,OutputPdfFileName)==0) || (strcmp(aFilename,LogFileName)==0)) {
                return;
        (*ipTotal)++;
        char msg[MAX_STRING_LENGTH] = "";
        char* Done = "Converted";
        char* NotDone = " - ";
        // try to convert and insert it to target PDF file.
        // rc would be 0 for success, otherwise 1.
        int rc = ConvertAndSavePDFInTargetFolder(aPathName, aFilename, targetPDdDoc, outputPathName);
        // if converted
        if(rc==0) {
            (*ipConverted)++;
    /* PassPDFBinderFileFilter
    /** Internal callback function for binding process
    ** @return true if the IN aFilename is a valid file for PDF conversion,
    ** otherwise false.
    ASBool PassPDFBinderFileFilter(char* aFilename)
    #ifdef USE_FILE_FILTER
        // if the filter is empty, any file will pass.
        if(strlen(gPDFBinderFileFilter)==0)
            return true;
        char* Ext = strrchr(aFilename,'.');
        if(Ext!=NULL) {
            Ext++;
            if(strstr(gPDFBinderFileFilter, Ext)) {
                return true;
        return false;
    #else
            // not use filter, any file will pass.
            return true;
    #endif
    /* ConvertAndInsertFileToPDF
    /** Internal function \n
    ** Convert a file to PDF, then insert it to target PDF file.
    ** @param aFileName IN  char string, filename.
    ** @param PDFfile IN/OUT PDDoc of the target PDF file.
    ** @return 0 if OK, 1 if failed.
    int    ConvertAndSavePDFInTargetFolder(ASPathName aPathName, char* aFileName, PDDoc PDFfile, ASPathName outputPathName)
        PDDoc tempPDF;
        char* Ext;
        DURING
            // get file extention
            Ext = strrchr(aFileName,'.');
            if(Ext) {
                Ext++;
            else {
                E_RETURN (1);
            // if the file is PDF, open PDDoc
            if(strcmp(Ext,"PDF")==0 || strcmp(Ext,"pdf")==0) {
                tempPDF = PDDocOpen (aPathName, ASGetDefaultFileSys(), NULL, true);
                if(tempPDF==NULL) {
                    PDDocClose(tempPDF);
                    E_RETURN (1);
            // else convert it to PDF
            else
                // let it automatically find right handler for the file and do the job.
                AVConversionStatus stat = AVConversionConvertToPDF
                    (kAVConversionAsyncOkay, //kAVConversionNoFlags
                      aPathName, ASGetDefaultFileSys(), &tempPDF, NULL);
                // check if successful
                if(stat != kAVConversionSuccess) {
                    //AVAlertNote("Cannot convert the file.");
                    E_RETURN (1);
                else {
                    //change Extension
                    ASText asTmp = ASTextNew();
                    ASFileSysDisplayASTextFromPath(ASGetDefaultUnicodeFileSys(), outputPathName, asTmp);
                    //AVAlertNote(ASTextGetScriptText(asTmp, kASRomanScript));
                    if(strcmp(Ext,"TIF")==0 || strcmp(Ext,"tif")==0){
                        ASTextReplace(asTmp, ASTextFromScriptText(".tif", kASRomanScript), ASTextFromScriptText(".pdf", kASRomanScript));
                    } else {
                        ASTextReplace(asTmp, ASTextFromScriptText(".tiff", kASRomanScript), ASTextFromScriptText(".pdf", kASRomanScript));
                    //AVAlertNote(ASTextGetScriptText(asTmp, kASRomanScript));
                    outputPathName = ASFileSysCreatePathName (ASGetDefaultUnicodeFileSys(), ASAtomFromString("ASTextPath"), asTmp, 0);
        HANDLER   
            // exception handling
            char errorMsg[256];
            ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
            // display an error message.
            if(ASBoolToBool(bEcho) == true) {
                AVAlertNote (errorMsg);
            return 1;
        END_HANDLER
        // Run OCR and Save new PDF into target PDF
        DURING
            //    OCR
            ASAtom cmdName;
            AVCommand cmd;
            cmdName=ASAtomFromString("PaperCapture");
            cmd=AVCommandNew(cmdName);
            ASCab config = ASCabNew();
            ASCabPutInt (config, "UIPolicy", kAVCommandUISilent);       //hide the interface
            if (kAVCommandReady ==     AVCommandSetConfig (cmd, config)) {
                //AVAlertNote("Config Ready");
            ASCab inputs = ASCabNew();
            ASCabPutPointer (inputs, kAVCommandKeyPDDoc, PDDoc, tempPDF, NULL);
            if (kAVCommandReady == AVCommandSetInputs (cmd, inputs)) {
                //AVAlertNote("Input Ready");
            ASCabDestroy (inputs);
            AVCommandStatus status = AVCommandExecute(cmd);
                        //switch (status) {
                        //    case kAVCommandReady :
                        //        AVAlertNote("Not working, but ready to work.");
                        //        break;
                        //    case kAVCommandWorking :
                        //        AVAlertNote("Still working");
                        //        break;   
                        //    case kAVCommandDone :
                        //        AVAlertNote("Done working");
                        //        break;   
                        //    case kAVCommandInError :
                        //        AVAlertNote("In Error");
                        //        break;       
                        //    case kAVCommandNotExecuted :
                        //        AVAlertNote("Command not executed due to lack of objects on which the command to be executed");
                        //        break;
            AVCommandDestroy(cmd);
            //Save
            //PDDocSave (tempPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized, outputPathName, ASGetDefaultUnicodeFileSys(),    NULL, NULL);
            //ClosePDF
            //PDDocClose(tempPDF);
            //Convert to PDF/A Compliance
            //Select the right handler
            AVConversionEnumFromPDFConverters(myAVConversionFromPDFEnumProc, NULL);
            // do conversion
            AVConversionStatus stat = AVConversionConvertFromPDFWithHandler(RightHandler, NULL, kAVConversionAsyncOkay, tempPDF, outputPathName,  ASGetDefaultFileSys(), NULL);
            // check the returned status and show message
            //if (stat == kAVConversionSuccess)
            //                AVAlertNote( "The PDF/A file was saved in output folder." );
            //else if (stat == kAVConversionFailed)
            //                AVAlertNote( "The PDF/A conversion failed." );
            //else if (stat == kAVConversionSuccessAsync)
            //                AVAlertNote( "The conversion will continue asynchronously." );
            //else if (stat == kAVConversionCancelled)
            //                AVAlertNote( "The conversion was cancelled." );
            //Save
            //PDDocSave (tempPDF, PDSaveFull | PDSaveCollectGarbage | PDSaveLinearized, outputPathName, ASGetDefaultUnicodeFileSys(), NULL, NULL);
            //ClosePDF
            PDDocClose(tempPDF);
            ASFileSysReleasePath(ASGetDefaultFileSys(), outputPathName);
        HANDLER
             char errorMsg[256];
            ASGetErrorString (ASGetExceptionErrorCode(), errorMsg, 256);
            if(ASBoolToBool(bEcho)==true) {
                AVAlertNote(errorMsg);
        END_HANDLER
            if(strcmp(Ext,"doc")==0) {
                char fname[40];
                sprintf(fname,"%s.pdf",aFileName);
                remove(fname);
            return 0;
    //Select the appropiate handler for the PDF/A conversion
    static ACCB1 ASBool ACCB2 myAVConversionFromPDFEnumProc(AVConversionFromPDFHandler handler, AVConversionEnumProcData data)
        AVFileFilterRec filter = handler->convFilter;
        ASUns16 numFileExt = filter.numFileDescs;
        char *kUniqueID = handler->uniqueID;
        // go through the conversion handlers to find a handler for PDF extension files and the unique key matches the PDF/A one.
        for  (ASInt32  i = 0; i < numFileExt; i++)
            if  (strlen(handler->convFilter.fileDescs[i].extension)>0)
                // found it, fill in the handler and return false to stop going on.
                if (!strcmp(handler->convFilter.fileDescs[i].extension, "pdf") && !strcmp(kUniqueID,"com.callas.preflight.pdfa")) {
                    RightHandler = handler;
                    return  false ;
        return true;

    There are some options for various APIs to run "kinda silent" - but again, Acrobat is designed for INTERACTIVE use…so "completely silent" isn't really an option.
    As for speed – you'd need to be MUCH MORE specific about where your slow downs are.  Have you profiled?
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Mon, 12 Dec 2011 07:39:08 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Slow processing and getting opening errors/warnings
    Re: Slow processing and getting opening errors/warnings
    created by FFX-ER<http://forums.adobe.com/people/FFX-ER> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4079175#4079175

  • Extremely slow processing of edited photos?

    After a year's time of slow "Aperture2" processing on my "old" Macbook Pro, I recently took the step of investing in a new powerful Macbook Pro - the recent one launched a month's time ago....i.e. a MacBookPro 6,2 with Intel Core i7, 2,66 GHz, 8 GB RAM, and a NVIDIA GeForce GT 330M Graphics Card. However, my experience with the processing of my photos is indeed very frustrating (SLOW).
    Any comments from users with similar specs would be most appreciated. I have heard of rumors to the extend that Aperture3 may not have been fully adjusted to the new i7-processors, however, could it rather be the interaction with the graphics board?

    I upgraded from a Gen 2 Macbook Pro 15" (2.33ghz) to the brand new 17" i7 with 8GB of RAM, and this new machine is a beast. It is quite a bit faster than my Mac Pro 2.66 quad with ATI 1900 and 8GB of RAM.
    By "slow processing", do you mean exporting versions? Importing? Adjustments? Aperture 3 is considerably faster than Aperture 2 at many operations, but slower in a few. If you're using certain brushes and adjustments, for example, the program can experience some serious slowdowns.
    You may want to check on some things like Faces and Places. Turning off face recognition can sometimes make the program more responsive. And as with 2.x, turning off Preview generation can also help quite a bit, especially importing.

  • Healing brush/Clone stamp tool and others very slow processing

    Healing brush/Clone stamp tool and others very slow processing. System resources monitor shows only 700MB (of 5GB allocated to Photoshop) RAM and 30% CPU is used to perform such tasks as healing brush. Process bar comes up and is painfully slow to complete the task. I don’t understand why does Photoshop not use all the resources available/allocated? No other programs are running at the time, I have tried all the suggestions on this forum and all over the Google. My brand new system is: Intel I7 4770K overclocked to 4.3GHz, 8GB 1600 RAM, Samsung PRO 120GB SSD system drive, 100GB scratch disk. The photos I usually work on don’t exceed 20MB in size. Any suggestion would be appreciated.  Thanks

    Thanks for the answer.
    I have not mentioned the GPU because the processes I described (as far as I know) are not supposed to be using GPU resources. So far I have not been able to afford the GPU i want which is GTX770, so I use Intel 4600 built in graphics instead. To be honest I find, that 4600 graphics is quite powerful. I am able to play Mass Effect 3 on Full spec on max res without game slowing down. And Windows 7 64bit index score is 7.8 for the 4600 graphics. Overall index score is 7.8 on my PC righ now.
    I'll try to get the Photoshop system info as soon as possible.
    Thanks again.
    Zee

  • After ios7 update my iphone is like android os dead slow processing , too fast battery drain,calling process is too low where is apple brand going my friends 11 members using iphone all are got this problem one thing fans like me y they spoil his name ??

    after ios7 update my iphone 4 is like android os dead slow processing , too fast battery drain,calling process is too low where is apple brand going my friends 11 members using iphone all are got this problem one thing apple have unique and unique fans like me why they spoil their name like this update iam too disappointed iam not say for oppose apple iam say for feedback to grow apple in world because i love apple more please solve it
                       by real customers
    iPhone 4, iOS 7, iam apple suporter

    please help me after ios7 update my phone is tooo slowww i want my old iphone                         

  • Pinwheel - Super slow processing

    I've had super slow processing time on my 2008 MacBook Pro (2.4 GHz Intel Core 2 Duo) for some time, which increased with my recent upgrade to Lion (for iCloud). My MacBook has base 2GB RAM.  Should I increase RAM to, say, 4 GB (or more)?

    The minimum amount of RAM to run Lion is 2GB. I would recommend upgrading to the maximum amount of RAM your MBP can address. I suspect the reason your system is slow is that it's starved for RAM. One easy way to tell is run Activity Monitor (Applications - Utilities - Activity Monitor) and select the System Memory tab. When you notice a slow down check the amount of FREE RAM, as a general rule of thumb if it's at or below 500MB then your system could use an upgrade. It will look similar to:
    If you decide to upgrade RAM I'd recommend 2 sources. Either www.macsales.com (OWC) or Crucial.com. My personal preference is OWC because they specialize in Macs, have good prices and great support including how-to videos. Crucial is excellent too but they don't specialize in Macs and don't have the level of support OWC has.
    BTW this is an iMac forum, your profile indicates you are using a MBP. Going forward please post in the correct forum.

  • Very slow processing on LSMW and IFS access

    Hi all,
    we have a very slow processing on LSMW and IFS access. I believe it was slow all the time in the past. This LSMW transaction only converts some data, which are stored in a flat file in the IFS and stores it again into a flat file in the IFS. It is reading the data from IFS and writing again the data into the IFS.
    IFS is not fast, I know. But do you have an similar experiences with such LOAD ?!
    R/3 Enterprise 4.70 shows with transaction SM50  the following lon running job:
    4  BGD  65988    waiting         Yes                                                     
    5  BGD  65989    waiting         Yes                                                     
    6  DIA  85421    running         Yes                    1      SAPLTHFB   100  USER1   
    7  DIA  65993    running         Yes                    11500  /1CADMC/SA 100 USER2   
    8  DIA  65994    waiting         Yes                                                     
    9  DIA  65995    waiting         Yes                                                     
    The WRKACTJOB Display shows:
    This means for me the job is not doing so much with the database. Only 439 I/O's in 21 minutes. This is nothing. I have tried to give to this job Priority 19, but this is not the reason, the job is not going faster.
    Work with Active Jobs                                                                               
    02.07.08  1
    CPU %:    89,0     Elapsed time:   00:21:25     Active jobs:   895                                                                               
    Subsystem/Job  Type  Pool  Pty      CPU  Int    Rsp  AuxIO  CPU %
          WP06         BCI     2   20     395,2                136    0,0
          WP07         BCI     2   19   10274,0                439   12,7
          WP08         BCI     2   20    1156,0                  8    0,0
          WP09         BCI     2   20     874,3                  6    0,0
    The WRKSYSSTS Display shows: This means for me, the is no memory lack.                                                                               
    Sys      Pool   Reserved    Max  ----DB-----  --Non-DB---  Act-   Wait-  Act- 
    Pool    Size M   Size M     Act  Fault Pages  Fault Pages  Wait   Inel   Inel 
      1    5000,00   1448,43  +++++    0,0   0,0    0,4   0,5   94,9    0,0    0,0
      2   60340,00     44,65   3500   51,6  6335  113,4 364,1   7887    0,0    0,0
      3     128,00      0,00     10    0,0   1,3    0,2   0,8   17,2    0,0    0,0
    The WRKDSKSTS Display shows no problem in DASD.
    I/O   Request   Read  Write   Read  Write    %  
      Rqs  Size (K)    Rqs   Rqs     (K)   (K)   Busy 
    11,5     12,4     3,0    8,4   13,2   12,1     2 
    13,2     10,2     1,5   11,6    7,0   10,6     1 
    10,6      8,8     3,5    7,0    8,2    9,2     2 
    13,8     12,4     4,2    9,5   10,1   13,5     2 
      8,3     71,3     7,5    0,8   78,4    7,4     5 
    17,7    123,6    17,5    0,2  125,2    4,0     9 
    27,0     83,1    25,7    1,3   87,1    4,3    10 
    26,9     95,0    25,6    1,3   99,6    5,8     9 
    16,9    115,4    16,2    0,7  120,3    4,0     8 
    37,3    116,7    37,0    0,2  117,3   18,0    13 
    21,4     94,0    20,3    1,0   98,6    6,2     7 
    12,7     72,8    11,5    1,1   77,6   26,8     6 
    13,5     85,1    12,3    1,1   92,0   12,8     5
    Any idea, here ???
    best regrads,
    Carsten Schulz
    Teamleader SAP-Basis, ebmpapst Mulfingen, Gemany

    Hi together,
    thanks for answering so fast.
    The jobs read from the  sysbas-IFS   /usr/sap/a/b/ and writes to /usr/sap/SID/DVEBMGS00/work/ also in the sysbas-IFS.This IFS is not remote. Not through the QfileSrv.400 mechanism.
    And yes, we have a HA solution. We have two IASP's on two different iSeries and are using XSM to mirror the data.
    I have tried to increase the speed by switching off the XSM mirroring, but the speed does not increase. Sorry.
    best regards,
    Carsten Schulz

  • HT5012 My iphone 5c was very slow processing,please help me?

    My iphone 5c was very slow processing and my setting not working properly please help me
    And my iphone 5c apps was crashing again and again..

    Try >  http://support.apple.com/kb/TS1538

  • Locks and/or slow processing

    Hello,
    Thanks in advance!!
    Whenever, our system receives a flood of events, we try to update the database by first locking a certain row using "select for update". However, the system seems to lock up (I think it is very slow in processing) for a long time as evident in the query below. Can anybody provide some insights was what we might be doing incorrectly as far as the database set up, tuning etc.
    One connection has an exclusive rowlock on a table called NODE and an exclusive lock on SYS.ALL_CATALOG. Others are all waiting to get a lock on SYS.ALL_CATALOG (actually it is some SYS.XXX table all the time). All connections are actually making the same "select for update" call.
    When I execute the query as follows I get a result which shows a very long wait time (approx: 515 seconds). isn't this too much?
    SQL> select count(*), SUM(time_waited), max(max_wait) from v$session_event where event = 'enqueue';
    COUNT(*) SUM(TIME_WAITED) MAX(MAX_WAIT)
    1 158919 308
    We are running Oracle 9.2.0.0 on a Windows 2K machine with 2G memory and dual 2.8GHz processor. The application is a Java based using a thin JDBC driver that comes with the 9.2.0.0 CD.
    SQL> set linesize 132 pagesize 66
    SQL> break on Kill on username on terminal
    SQL> column Kill heading 'Kill String' format a13
    SQL> column res heading 'Resource Type' format 999
    SQL> column id1 format 9999990
    SQL> column id2 format 9999990
    SQL> column lmode heading 'Lock Held' format a20
    SQL> column request heading 'Lock Requested' format a20
    SQL> column serial# format 99999
    SQL> column username format a10 heading "Username"
    SQL> column terminal heading Term format a8
    SQL> column tab format a35 heading "Table Name"
    SQL> column owner format a9
    SQL> column Address format a18
    SQL> select nvl(S.USERNAME,'Internal') username,
    2 nvl(S.TERMINAL,'None') terminal,
    3 L.SID||','||S.SERIAL# Kill,
    4 U1.NAME||'.'||substr(T1.NAME,1,20) tab,
    5 decode(L.LMODE,1,'No Lock',
    6 2,'Row Share',
    7 3,'Row Exclusive',
    8 4,'Share',
    9 5,'Share Row Exclusive',
    10 6,'Exclusive',null) lmode,
    11 decode(L.REQUEST,1,'No Lock',
    12 2,'Row Share',
    13 3,'Row Exclusive',
    14 4,'Share',
    15 5,'Share Row Exclusive',
    16 6,'Exclusive',null) request
    17 from V$LOCK L,
    18 V$SESSION S,
    19 SYS.USER$ U1,
    20 SYS.OBJ$ T1
    21 where L.SID = S.SID
    22 and T1.OBJ# = decode(L.ID2,0,L.ID1,L.ID2)
    23 and U1.USER# = T1.OWNER#
    24 and S.TYPE != 'BACKGROUND'
    25 order by 1,2,5
    26 /
    Username Term Kill String Table Name Lock Held Lock Requested
    EMS3 unknown 11,507 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 18,116 EMS3.NODE Row Exclusive
    EMS3 unknown 11,507 EMS3.NODE Row Share
    EMS3 unknown 13,6 EMS3.NODE Row Share
    EMS3 unknown 22,56 EMS3.NODE Row Share
    EMS3 unknown 23,6 EMS3.NODE Row Share
    EMS3 unknown 24,6 EMS3.NODE Row Share
    EMS3 unknown 25,7 EMS3.NODE Row Share
    EMS3 unknown 26,10 EMS3.NODE Row Share
    EMS3 unknown 40,8 EMS3.NODE Row Share
    EMS3 unknown 39,7 EMS3.NODE Row Share
    EMS3 unknown 38,6 EMS3.NODE Row Share
    EMS3 unknown 37,6 EMS3.NODE Row Share
    EMS3 unknown 36,6 EMS3.NODE Row Share
    EMS3 unknown 35,10 EMS3.NODE Row Share
    EMS3 unknown 34,7 EMS3.NODE Row Share
    EMS3 unknown 33,6 EMS3.NODE Row Share
    EMS3 unknown 32,7 EMS3.NODE Row Share
    EMS3 unknown 57,6 EMS3.NODE Row Share
    EMS3 unknown 56,6 EMS3.NODE Row Share
    EMS3 unknown 55,10 EMS3.NODE Row Share
    EMS3 unknown 54,7 EMS3.NODE Row Share
    EMS3 unknown 53,6 EMS3.NODE Row Share
    EMS3 unknown 52,9 EMS3.NODE Row Share
    EMS3 unknown 51,6 EMS3.NODE Row Share
    EMS3 unknown 50,8 EMS3.NODE Row Share
    EMS3 unknown 49,7 EMS3.NODE Row Share
    EMS3 unknown 67,6 EMS3.NODE Row Share
    EMS3 unknown 66,10 EMS3.NODE Row Share
    EMS3 unknown 65,7 EMS3.NODE Row Share
    EMS3 unknown 64,6 EMS3.NODE Row Share
    EMS3 unknown 63,8 EMS3.NODE Row Share
    EMS3 unknown 62,6 EMS3.NODE Row Share
    EMS3 unknown 61,7 EMS3.NODE Row Share
    EMS3 unknown 60,8 EMS3.NODE Row Share
    EMS3 unknown 59,7 EMS3.NODE Row Share
    EMS3 unknown 58,6 EMS3.NODE Row Share
    EMS3 unknown 48,7 EMS3.NODE Row Share
    EMS3 unknown 47,7 EMS3.NODE Row Share
    EMS3 unknown 46,6 EMS3.NODE Row Share
    EMS3 unknown 45,6 EMS3.NODE Row Share
    EMS3 unknown 44,9 EMS3.NODE Row Share
    EMS3 unknown 43,7 EMS3.NODE Row Share
    EMS3 unknown 42,7 EMS3.NODE Row Share
    EMS3 unknown 41,6 EMS3.NODE Row Share
    EMS3 unknown 30,7 EMS3.NODE Row Share
    EMS3 unknown 29,6 EMS3.NODE Row Share
    EMS3 unknown 28,6 EMS3.NODE Row Share
    EMS3 unknown 27,6 EMS3.NODE Row Share
    EMS3 unknown 13,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 18,116 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 23,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 25,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 67,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 66,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 65,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 64,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 63,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 62,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 61,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 60,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 59,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 58,6 SYS.ALL_CATALOG Exclusive
    Username Term Kill String Table Name Lock Held Lock Requested
    EMS3 unknown 57,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 56,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 55,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 54,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 53,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 52,9 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 51,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 50,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 49,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 48,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 47,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 46,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 45,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 44,9 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 43,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 42,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 41,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 40,8 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 39,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 38,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 37,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 36,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 35,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 34,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 33,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 32,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 30,7 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 29,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 28,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 27,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 26,10 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 24,6 SYS.ALL_CATALOG Exclusive
    EMS3 unknown 22,56 SYS.ALL_CATALOG Exclusive
    96 rows selected.
    SQL>

    Ranganath,
    Please work with Oracle Support to resolve this issue. That way, we can get a more extensive insight and documentation for the issue and fix what underlying problems may exist. Thanks!
    Regards,
    Toliver Jue

  • Is there a fix for the slow processing yet? Clipping mask slows down Illustrator CS4 to the point it can't be used

    I've seen a few older posts regarding CS4's bug with applying a clipping mask to any image that is somewhat complex, but have yet to find an answer.
    The problem is, any time a clipping mask is applied to a semi-complex shape, Illustrator CS4 slows almost to a halt. We're talking 10 minutes of the beach ball to apply the mask and then another few minutes to do anything else with the document. This is unacceptable. My system is loaded (Dual 1.8 GHz G5, 1.25 GB of memory). The exact same files process fine in CS3. Many of our other designers are running iMacs and cannot work on the files at all using CS4. There has to be an answer to this problem.
    Prefs have been deleted, Document Raster Effects has been lowered. Any other suggestions?
    Your help is greatly appreciated.

    My system is loaded (Dual 1.8 GHz G5, 1.25 GB of memory).
    Uhm.. that's "loaded"? That's like the slowest G5 made with almost the minimum amount of RAM.
    But.. I agree with you. Clipping masks seems to drastically slow CS4 down. Even if an object isn't really complex, but included many objects. I'm running a much faster system than you are and I have to wait around 3 to 10 seconds after any operation for some files. It's annoying. So far, I've not found any solution other than to expand and clip the masks.

  • Pending messages in queue consume cache and result slow processing

    Hi All
              I have one stand alone java application which is consumer of one weblogic JMS queue.
              What my application does, it take big messages in to xml format and convert it in to small chunk of xml using XSLT.
              Here I am struggling with one major problem when I sent 10 messages all together all messages went in to pending queue and as application process only one messages at a time, there for other messages waste the cache and processing become slow.
              If I send same 10 messages one by one after completion of last messages total time to process 10 messages is very less then compare to if I sent all together.
              Is there any web logic setting I can do so only one messages goes in to pending queue.

    Ali,
    How about this:
    142# imsimta qm dir | grep '^ *[0-9]' | wc -l
          14I don't know that it's significantly better, but "qm" generates only a single line of output per message whereas "cache" provides like 10/message.
    Bill

  • Multithrea​ding and RS232 data too slow processed

    Hello,
    Hope someone could help with this issue.  I have simple application which process ASCII data coma separated from serial port at speed of 115.2kbps. There is 6 columns  of unsigned short data .  I set-up COM call back function to receive data and I created separate thread function to plot data  on a 6 graphs - PlotWaveform() used.  Plots roll-over from beginning every time it receives more then 3000 samples. There is couple of more command buttons to set-up serial port, save data to a file, and exit application.
    What is problem?  Application runs as intended but more and more slow with each received data sample. It is visible how graph plotting slows down. Apart from this,  all command buttons do not respond on cliks. (I need to click few minutes on them to get attention.)
    Thanks
    Solved!
    Go to Solution.

    Thanks Roberto,
    a) I continiously receive RS232 data from external device without request. I install  COM callback func.
    InstallComCallback (comport, eventMask, notifyCount,eventChar, ComCallback, NULL);  where is:
    static int eventChar =13;   
    static int notifyCount =115;
    Call back functions where I process data and store them into 6 arrays of 3000 elements:
    void CVICALLBACK ComCallback(int portNo, int eventMask,void *datax);
    b)  I assume ComCallback is called every notifyCount samples.
    c)  Second thread what I installed plots only 6 received data arrays in the ComCallback(). 
    static int CVICALLBACK PlotingThreadFunc (void *functionData)
      while(1)
                      if(plotFLAG == TRUE)
                                        plotFLAG = FALSE;
                                        //Plot Array1
                                        PlotWaveform (panelHandle, PANEL_GRAPH, CapMeasureArrayData1,
                                                      ​                                          u16_DataIndexC, VAL_UNSIGNED_SHORT_INTEGER, 1.0, 0.0,
                                                      ​                                          0.0, 1.0, VAL_FAT_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1,
                                                      ​                                          VAL_RED);
                                             to ..........
                                        //Plot Array6
                                        PlotWaveform (panelHandle, PANEL_GRAPH_CAP6,
                                                      ​                                          CapMeasureArrayData6, u16_DataIndexT,
                                                      ​                                          VAL_UNSIGNED_SHORT_INTEGER, 1.0, 0.0, 0.0, 1.0,
                                                      ​                                          VAL_FAT_LINE, VAL_EMPTY_SQUARE, VAL_SOLID, 1,
                                                      ​                                          VAL_RED);
     return 0;
    The plotFLAG is set in the ComCallback() when data is received.
    d)  I plot as above, whoole data arrays when data is received.
    e)  “Plots Roll-Over”  I meant: Plots are window into data steram and when it is plotted max. number of elements (3000) then arrays are erased and start new data plot from beginning.

  • Slow processing in full screen mode

    Hi All
    I recently upgraded my camera to an EOS 5d mk 2. I take photos in full RAW, so resulting images are around 26 MB.I then import these as managed reference files into Aperture.
    No issue with import to Aperture or image quality.
    However, when viewing the photos in full screen mode (to rank / edit etc), they take a long time to properly open / load (about 20 seconds each.) Each time I re-open Aperture, each image needs to be re-loaded in full screen size - which can become very time consuming. Edits are equally very slow to process.
    I was wondering if anyone had any suggestions how to manage this and avoid the time lag (other than downgrading to smaller image sizes). For example...
    - I currently have 2GB of memory and a 128 mb graphics card. Do I need to upgrade to handle such large images?
    - Can I reset a preference to avoid having to reload the full size image every time I open Aperture?
    - How can I speed up editing speed (nothing too fancy done here - I note from other posts the "7 deadly edits" that can cause processing to slow up)
    Any ideas gratefully received!!!
    Many thanks
    Paul

    Pabloelchico wrote:
    ...I then import these as managed reference files into Aperture.
    I don't understand whether you have a Referenced-Masters Library or a Managed-Masters Library. Drives slow as they fill and with a Managed-Masters Library sooner or later the internal drive will become overfilled. I recommend a Referenced-Masters Library with Masters on an external drive and the Aperture Library on the internal drive.
    iMacs, laptops and Minis are by definition limiting to heavy Aperture usage, so work carefully to optimize setup and workflow.
    First is to max the RAM and make sure the hard drive stays less than 70% full. Restart the iMac prior to a major Aperture session and only have Aperture open. You should also investigate to see if a substantially more powerful video card is available at reasonable price.
    Set Preview size to be exactly screen size and build Previews manually when the box is otherwise not being aggressively used.
    HTH
    -Allen Wicks

  • Slow processing and exporting

    We have been using Aperture 2 for about a year and love it. Upgraded to 3.0.3 recently and find the processing and exporting very slow. We are using the iMac 2.16 GHz, 4GB 667 ..... because of the matt screen it is much nicer for photographic editing. The newer iMac's with glossy screens are horrible because there is a density problem being darker at the top then at the bottom. Also a warm cast at the top and a cold cast at the bottom. This means we don't want to upgrade to the new models with more ram.
    Any advice?

    There are something that you can do to optimise the performance of Aperture whilst you are editing and exporting.
    Easy ones
    1. Turn off faces (when not in use)
    2. Turn off create previews (when not in use)
    3. Do exports overnight when nothing else is running
    4. Run regular system maintenance, DIsk Utility
    5. Run regular Aperture first Aid, http://support.apple.com/kb/HT3805
    6. Ensure harddrives are no more than 80/90% of capacity
    Invest in
    7. Have your images and library on dedicated fast drives, connected via a fast interface, (USB2 is not a fast interface).
    8. Max the RAM out on your machine
    9. If in business, a new machine every three years.
    900 images even at 1 min per image, 15 hrs, depending on how many adjustments, what file type you are working from, what file type, size and compression you are exporting to, lots of variables.
    I agree though 40hrs something needs improving in your system.
    Tony

  • Mac has become insanely slow : Processes SystemUIServer, UserEventAgent and loginwindow using a lot of memory

    I have been using my Mac for for many months without any problem. But recently all of a sudden the Mac became insanely slow.
    I opened Activity Manager to see what was happening. For three processes SystemUIServer, UserEventAgent and loginwindow, the memory gradually increases and reaches upto 2 GB for each process. This completely hangs up my Mac.
    I tried the following:
    Restart Mac
    Restart Mac in safe mode
    Manually kill the processes
    Remove Date and Time from Menu bar (this was supposed to be the problem for the SysteUIServer process's memory according to many users)
    Removed the externally connected keyboard and mouse(some had suggested this for UserEventAgent's memory)
    No luck with any of those. The moment I log in, the memory spikes up.
    Any idea what on earth is happening? Please help.

    Create a new user account with admin status. Log out of your account, then log into the new one. Does your problem stop? If not then boot into Safe Mode. Does the problem stop? Boot normally. Does the problem stop.
    If none of the above help, then you have a corrupted system and need to reinstall Lion.
    Reinstalling Lion/Mountain Lion Without Erasing the Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

Maybe you are looking for

  • Absolute value discount in Special Prices

    I have a customer that has special prices with a value discount, not a percentage one. I thought about adding a UDF to the Special Prices table and do a formatted search against it, but later I found that I cannot add an UDF to the Special Prices tab

  • Problem upgrade 3.2u2 to 3.2u3 in x86 with vmware

    the node13 and quorum haven't got vote --- Quorum Votes Summary from latest node reconfiguration --- Needed Present Possible 1 1 1 --- Quorum Votes by Node (current status) --- Node Name Present Possible Status nodo13 0 0 Online nodo14 1 1 Online ---

  • ABAP - Editable report using Excel view

    hi friends In my report i am using REUSE_ALV_GRID_DISPLAY Function module to display the data in alv format. I am using the view in Excel format. My requirement is, If i change the data in the excel sheet that should reflect in the internal table. I

  • I do not have a home computer. How do I use Firefox on my iPhone ?

    The only computer I have is my iPhone.

  • Backup schedule on DB13

    Hi All, We are using ECC 6.0 with MSSQL 2005, we want to schedule backup using DB13, is there any note before scheduling the backup. regards, Guna