IsNull and In-memory Query.

I have two objects:
Item with attribute:itemId, statusCollection (many-to-one bi-directional map)
ItemStatus with attributes:statusId, startDate, thruDate and item (one-to-many bidirectional map)
The issue is that the query in memory, using isNull in the expression, does not seem to work. In the code below, I use the same expression to read from Db and from the memory. The Db query returns some rows but the in-memory does not. Am I doing something wrong? Is that a known issue? I am using 9.0.4.
     //Query DB
     ReadAllQuery queryDb = new ReadAllQuery();
     ExpressionBuilder ebDb = new ExpressionBuilder();
     Expression whereDb = ebDb.anyOf("statusCollection").get("thruDate").isNull();
     queryDb.setReferenceClass(Item.class);
     queryDb.setSelectionCriteria(whereDb);
     Vector strongRef = (Vector) SessionHome.getSession().executeQuery(queryDb);
     // Load all the status in memory ...
     for (Iterator it = strongRef.iterator(); it.hasNext(); ((Item)it.next()).getStatusCollection().size());
     System.out.println("Querying DB:" + strongRef.size());
     //Query Mem
     ReadAllQuery queryMem = new ReadAllQuery();
     ExpressionBuilder ebMem = new ExpressionBuilder();
     Expression whereMem = ebMem.anyOf("statusCollection").get("thruDate").isNull();
     queryMem.setReferenceClass(Item.class);
     queryMem.setSelectionCriteria(whereDb);
     queryMem.checkCacheOnly();
     Vector strongRef2 = (Vector) SessionHome.getSession().executeQuery(queryMem);
     System.out.println("Querying Mem:" + strongRef2.size());

Hi Paulo,
I meant to post this yesterday.
If you replace:
Expression whereMem = ebMem.anyOf("statusCollection").get("thruDate").isNull();
with:
Expression whereMem = ebMem.anyOf("statusCollection").get("thruDate").equal(ebMem.value(null));
your query should conform in-memory. Also beware anyOf(..).in(...) and anyOf(...).equal(obj) where obj is not null.

Similar Messages

  • Difference between nio-file-manager  and nio-memory-manager

    Hi,
    what's the difference between nio-file-manager and nio-memory-manager? The documentation doesn't really discuss the differences as far as I know. They both use nio to store memory-mapped files don't they? What are the advantages/disadvantages of both?
    When to choose the first one and when the second when storing a large amount of data? Can both be used to query data with the Filter API? Are there size limits on both?
    Best regards
    Jan

    Hi Jan,
    The difference is that one uses a memory mapped file and one uses direct nio memory (as part of the memory allocated by the JVM process) to store the data. Both allow storing cache data off heap making it possible to store more data with a single cache node (JVM) without long GC pauses.
    If you are using a 32 bit JVM, the JVM process will be limited to a total of ~3GB on Windows and 4GB on Linux/Solaris. This includes heap and off heap memory allocation.
    Regarding the size limitations for the nio-file manager Please see the following doc for more information.
    With the release of 3.5 there is now the idea of a Partitioned backing map which helps create larger (up to 8GB of capacity) for nio storage. Please refer to the following doc.
    Both can be used to query data but it should be noted that the indexes will be stored in heap.
    hth,
    -Dave

  • My macbook pro model mid 2009 is running slow. free memory is 35 mbs and inactive memory is  1.36 gb with a total of 5 gb RAM memory

    Problem description:
    too much inactive memory 1.87 gb and free memory only 35 mb
    EtreCheck version: 2.1.1 (104)
    Report generated 10 December 2014 3:30:26 pm IST
    Hardware Information: ℹ️
      MacBook Pro (13-inch, Mid 2009) (Verified)
      MacBook Pro - model: MacBookPro5,5
      1 2.26 GHz Intel Core 2 Duo CPU: 2-core
      5 GB RAM Upgradeable
      BANK 0/DIMM0
      1 GB DDR3 1067 MHz ok
      BANK 1/DIMM0
      4 GB DDR3 1067 MHz ok
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      NVIDIA GeForce 9400M - VRAM: 256 MB
      Color LCD 1280 x 800
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 4:42:54
    Disk Information: ℹ️
      WDC WD5000LPVT-80G33T2 disk0 : (500.11 GB)
      S.M.A.R.T. Status: Verified
      EFI (disk0s1) <not mounted> : 210 MB
      [redacted] (disk0s2) / : 499.25 GB (142.01 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      HL-DT-ST DVDRW  GS23N 
    USB Information: ℹ️
      Apple Inc. Built-in iSight
      Apple Internal Memory Card Reader
      Apple Inc. Apple Internal Keyboard / Trackpad
      Apple Computer, Inc. IR Receiver
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
    Gatekeeper: ℹ️
      Anywhere
    Kernel Extensions: ℹ️
      /System/Library/Extensions
      [not loaded] com.driver.KUSBModemCDC07 (4.0.2) [Support]
      [not loaded] com.driver.KUSBModemDataA07 (4.0.2) [Support]
    Startup Items: ℹ️
      JHHPortDetect: Path: /Library/StartupItems/JHHPortDetect
      Sudochmod: Path: /Library/StartupItems/Sudochmod
      Startup items are obsolete in OS X Yosemite
    Launch Agents: ℹ️
      [not loaded] com.adobe.AAM.Updater-1.0.plist [Support]
      [running] com.bjango.istatmenusagent.plist [Support]
      [loaded] com.google.keystone.agent.plist [Support]
      [loaded] com.oracle.java.Java-Updater.plist [Support]
      [running] jp.co.canon.CUPSCAPT.BG.plist [Support]
      [loaded] org.macosforge.xquartz.startx.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [invalid?] com.adobe.SwitchBoard.plist [Support]
      [running] com.bjango.istatmenusdaemon.plist [Support]
      [loaded] com.google.keystone.daemon.plist [Support]
      [loaded] com.microsoft.office.licensing.helper.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [Support]
      [loaded] com.oracle.java.JavaUpdateHelper.plist [Support]
      [loaded] org.macosforge.xquartz.privileged_startx.plist [Support]
      [loaded] org.tcpdump.chmod_bpf.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
    User Login Items: ℹ️
      iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
      Caffeine Application (/Applications/Caffeine.app)
      AdobeResourceSynchronizer ApplicationHidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
      Dropbox Application (/Applications/Dropbox.app)
      HyperDock Helper UNKNOWN (missing value)
    Internet Plug-ins: ℹ️
      o1dbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      Default Browser: Version: 600 - SDK 10.10
      AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 [Support]
      FlashPlayer-10.6: Version: 15.0.0.246 - SDK 10.6 [Support]
      Flash Player: Version: 15.0.0.246 - SDK 10.6 Mismatch! Adobe recommends 16.0.0.235
      QuickTime Plugin: Version: 7.7.3
      googletalkbrowserplugin: Version: 5.38.6.0 - SDK 10.8 [Support]
      SharePointBrowserPlugin: Version: 14.0.0 [Support]
      AdobePDFViewer: Version: 11.0.09 - SDK 10.6 [Support]
      zako: Version: zako 1.0.0.0 - SDK 10.8 [Support]
      iPhotoPhotocast: Version: 7.0 - SDK 10.8
      JavaAppletPlugin: Version: Java 7 Update 71 Check version
    User internet Plug-ins: ℹ️
      BlueStacks Install Detector: Version: Unknown
    Safari Extensions: ℹ️
      AdBlock
      ClickToFlash
      Awesome Screenshot
      Breaking News
      The New York Times
    3rd Party Preference Panes: ℹ️
      Flash Player  [Support]
      Java  [Support]
    Time Machine: ℹ️
      Skip System Files: NO
      Mobile backups: ON
      Auto backup: YES
      Volumes being backed up:
      Arupreet: Disk size: 499.25 GB Disk used: 357.24 GB
      Destinations:
      CHIKKI [Local]
      Total size: 331.41 GB
      Total number of backups: 2
      Oldest backup: 2014-06-10 13:36:00 +0000
      Last backup: 2014-09-08 13:57:40 +0000
      Size of backup disk: Too small
      Backup size 331.41 GB < (Disk used 357.24 GB X 3)
    Top Processes by CPU: ℹ️
          8% python
          3% WindowServer
          3% uTorrent
          2% SystemUIServer
          0% mtmfs
    Top Processes by Memory: ℹ️
      1.29 GB JavaAppLauncher
      123 MB SystemUIServer
      102 MB iStatMenusDaemon
      86 MB com.apple.WebKit.WebContent
      81 MB WindowServer
    Virtual Memory Information: ℹ️
      50 MB Free RAM
      1.97 GB Active RAM
      1.90 GB Inactive RAM
      673 MB Wired RAM
      6.70 GB Page-ins
      8 MB Page-outs
    Diagnostics Information: ℹ️
      Dec 10, 2014, 10:48:11 AM Self test - passed
      Dec 9, 2014, 02:54:15 AM VLC_2014-12-09-025415_Arus-MacBook-Pro.crash

    Not sure if using Terminal would help:
    Launch Activity Monitor
    Select Memory tab
    Launch Terminal
    type sudo purge
    password
    10-15 sec later Terminal should refresh and show freed memory & cache

  • C240 M3 Stuck at "Configuring and testing memory .."

    Hi,
    This server's just been returned to us from Cisco, who had it on loan since it was new.   We're trying to put it back into service, but have hit the following problem.
    On first power-up the server gets as far as the "Configuring and testing memory .." message.  Just that message, it doesn't show any progress in actually testing memory.   After a few seconds it shuts itself down, then spins up again, repeating that a couple of times before sitting with the "Configuring and testing memory .." message at the top of the screen, but now also showing CIMC IP address at the bottom.   All four LEDs above the power button show steady green,  and the unit ID buttons switch the blue LED on/off as they should.
    I can get to the CIMC login screen, but the password's been changed from default so can't get any further in that direction until we find out the new user/password details.  Unless someone knows how to reset CIMC to default.
    I've tried the following recovery steps ..
    (1) If we set the "Clear CMOS" jumper J2065, the server won't power up.  It powers up to standby, but does not respond on pressing the power button.
    (2) Using the "BIOS recovery" jumper J2068 doesn't appear to have any effect, the server does not read the recovery file from USB flash drive.
    Any ideas?   
    Thanks, 
    Tony S

    Cheers.  There's not much to reseat at this stage.   The server came back with two CPUs of unknown type, I've removed and set those aside in case they're some sort of weird CPU that needs a special memory configuration.
    We've fitted a single E5-2609 as CPU1 and single DIMM in A1.  There are no PCI cards or anything else to reseat.    As a matter of fact the server behaves exactly the same if there's no memory at all, making me think it's hanging up before starting the memory check.
    I would love to get into the CIMC, but does anyone know a way to reset the username/password other than via the BIOS screens (which aren't accessible).
    Thanks, Tony S

  • K9A2 Platinum and 4 Memory Modules

    Hey gang, the saga continues.
    BIOS 1.2
    With Vista Enterprise x64 SP1 RC and 4x DDR2-800 OCZ modules (see my signature) my system will POST but not boot properly (even in safe mode!) at either 3-4-4-15-2T-2.4V or at 5-5-5-15-2T-2.4V.  It gets almost to the point where it wants to bring up the vista logo after loading all the drivers however then the screen resets to "no signal" and the system reboots from POST.
    I removed 2 of the memory modules, leaving 2 in the slots closest to the CPU.  At 3-4-4-15-2T-2.4V (which is what the memory is rated for) the ATI kernel driver gets a page fault during load, blue screen, memory dump.  However at 5-5-5-15-2T-2.4V the system is stable.  I expected 2 memory modules to work at the rated speed of the memory.  I expected 4 memory modules to work at looser timings.  I'll try 5-5-5-18-2T-2.4V with 4 modules just to see.
    I'm getting 8GB/s throughput in Sandra XII at 5-5-5-15-2T-2.4V.
    With BIOS P.0D I was getting 9.5GB/s at 5-5-5-18-2T-2.3V with the mushkin XP8500.
    Maybe P.0D doesn't have the erratum in it, and tighter memory controller timings.
    Oh and the Sandra disk benchmark test posted a RAID0 score of 140.5 MB/s throughput.  WD360JD was 55 MB/s.  I need to run a better benchmark though.  I bought EVEREST Personal Ultimate, maybe it'll have something more useful in it.  I can tell you the EVEREST benchmarks for memory performance on my system absolutely suck.  They're pinning it around midrange in all the tests. :<  I cannot run HDTach on this system because it doesn't recognize me as an Administrator (although I am one).
    I have my final water cooling parts arriving on Wednesday - an inline temperature sensor which will hang right off the egress on the video card stack, for accurate CPU + video card heat levels on the liquid for the fan control.
    At idle this system keeps the CPU at 99F temp, HD at 105F (I removed the front case fan, it would probably be cooler with it in there, but slightly noisier).  Memory therefore is probably around 102F.  I haven't gotten to stress testing yet because of the stability issues.
    I also am trying Catalyst 8.1 beta to see if CrossFireX will work.
    ** At least the system is POSTing BOOTing **   

    Quote from: MagnumMan on 15-January-08, 21:25:47
    AaronYuri: Using Vista Enterprise x64 SP1 RC, no fixes come up through Windows Update, I assume I have everything... point me to something that wouldn't be in the service pack RC?
    Quad: So you think with an X2 CPU this wouldn't be a problem, but the Phenom is inferior?
    Russ: I'm using fixed memory voltage as specified in the test.  2.4V and 2.1V.  Both of which should have worked.  Since I can do DDR2-800 2x 3-4-4-15-1T-2.4V stable (running Prime95 now...), I would expect to be able to do DDR2-533 5-5-5-18-2T-2.1V.  Also this board originally posted with the memory at DDR2-1066 5-7-7-20-2T-2.4V so I know the memory isn't the issue.
    One additional comment I would like to add to this discussion is that with all 4 memory modules loaded I can install the Vista operating system.  It is only after I reboot, after the initial install, that it won't complete the boot cycle any longer.  So the install boot works (which is probably a limited kernel?) but the real thing won't work.
    As for DDR2-400 I might give it a try but I have to say if that's the only way I could do 4gb memory, I wouldn't do it.
    Hello, I have the SAME sort of problems except with the K9A Platinum
    Here is the fix/update they are talking about
    http://support.microsoft.com/kb/929777/en-us
    I have applied it and did not work for me. You are getting a BSOD likely. Boot to 2gb, go to System Settings under Control Panel. Click Advanced Setting on the left. Then click Settings button under Startup and recovery. UN-check automatically restart. You may then see the BSOD when you try booting with 4gb again.
    I a using latest bios on my MSIK9A and I still cannot boot Windows to 4gb.
    I have read thru all 20 pages here:
    http://forums.microsoft.com/technet/showpost.aspx?postid=1292561&siteid=17&sb=0&d=1&at=7&ft=11&tf=0&pageid=10
    Even though I do not run 64bit, this still seems to be a very common problem with running 4gb on 32bit and 64bit. It is not just a Windows problem. I have read Linux has exhibited this as well.
    I even did a clean install of Vista on a spare drive last night with only 2gb installed. I then updated all drivers in order and then applied MS Hotfix I linked to above. I shutdown, put in all 4gb and BAM!! same exact BSOD. I have tried setting timings to many different settings. I have tried all "suggested fixes" to no avail. All 4gb of Memory all passes memtest86 v1.7 scans. Ran 17 passes overnight and all passed.

  • Creation and transportation of query from development to simulation system

    Hello experts,
    I need to create a new Query in the development  system in the General Ledger folder in Financial reporting.  and then I need to transport the same to the  simulation system. what are the correct steps I  need to follow to do the same if have to avoid any issues during this transportation.
    Do I need to do any modifications to the role ZS_XX_BEX_MENU and transport the same?
    Could anyone help me in this regard giving me the exact procedure I need to follow.
    Regards

    No need to modify, but if it is $temp then change it has ur won request.
    follow the genral procedure
    1)In RSA1 Go to Transport tab and collect ur query.
    Drag to right screen
    If it is in $Temp change it to your own request. For this You may need Access.
    2)Query contains all objects which were used in that query.
    if any Info object that are created newly then check for Transport
    3) Then, finally click on transport(Truck) icon
    4) By default, it will collect all new objects including newly created Info Objects also. You can change the collections of your own selection.
    You will get a Request Number here. Please save this Number so that you can check this at SE09
    5) In SE09 search for your Request Number.
    6)Release The request by subsequent process onwards( Means sub contents like infoprovider first and then Query)

  • Difference between free and inactive memory?

    I'm really just wondering what the difference is between inactive, and free memory. Right now, I have about 13MB of free memory, and 381MB of inactive memory. Is the inactive memory just on reserve in case the computer absolutely needs it? Is there any way to utilize this "inactive" memory to speed up the computer? Thanks.

    Read the following:
    <font "size=+1">About OS X Memory Management and Usage
    Reading system memory usage in Activity Monitor
    Memory Management in Mac OS X
    Performance Guidelines- Memory Management in Mac OS X
    A detailed look at memory usage in OS X
    Understanding top output in the Terminal
    The amount of available RAM for applications is the sum of Free RAM and Inactive RAM. This will change as applications are opened and closed or change from active to inactive status. The Swap figure represents an estimate of the total amount of swap space required for VM if used, but does not necessarily indicate the actual size of the existing swap file. If you are really in need of more RAM that would be indicated by how frequently the system uses VM. If you open the Terminal and run the top command at the prompt you will find information reported on Pageins () and Pageouts (). Pageouts () is the important figure. If the value in the parentheses is 0 (zero) then OS X is not making instantaneous use of VM which means you have adequate physical RAM for the system with the applications you have loaded. If the figure in parentheses is running positive and your hard drive is constantly being used (thrashing) then you need more physical RAM.

  • In OSX Activity Monitor, what's the difference between 'free' memory and 'inactive' memory

    In OS X Activity Monitor, what's the difference between 'free' memory and 'inactive' memory. My daughters 2Gb MacBook Pro is very slow, it probably needs more memory but there is almost 1Gb of 'inactive' memory but no 'free' memory when an application is opened.
    Thanks

    Free RAM is the one that has not been used by any application since you started up your Mac, and inactive RAM is the one that was used by an application and it is not in use anymore.
    1 GB of inactive RAM is a lot, and it may be the cause of the slowness. There are a lot of apps that allows you to turn inactive into free RAM. I use FreeMemory, but have a look at the Mac App Store.
    If you are a developer, you can do that with a command you can type into Terminal:
    sudo purge

  • HI, I HAVE A MacBook Pro 2.3GHz dual-core Intel i5 AND I WAN'T TO UPGRADE THE HARD DRIVE UP TO 750GB AND ALSO THE RAM MEMORY TO 8GB. WHAT SPECIFIC MODEL OF HARD DRIVE AND RAM MEMORY SHOULD I BUY??? THANKS

    HI, I HAVE A MacBook Pro 2.3GHz dual-core Intel i5 AND I WAN'T TO UPGRADE THE HARD DRIVE UP TO 750GB AND ALSO THE RAM MEMORY TO 8GB. WHAT SPECIFIC MODEL OF HARD DRIVE AND RAM MEMORY SHOULD I BUY??? THANKS

    No need to type in all caps - we HEAR you!
    I would take a look at the internal drives offered by both Crucial (click the link "Internal Hard Drives Now Available") and OWC. I would stay away from Western Digital drives as they seem to have problems on a number of Mac models.
    You can also shop for RAM at Crucial and OWC - just select the System Scanner tab at the Crucial website to find out which memory is right for your machine.
    Good luck,
    Clinton

  • 648 max , testing base and extended memory

    I dont see the thread i answered to one time that someone spoke of using ddr400 with 648 max or max-L board and they were getting testing base and extended memory error from the LED's.  Well i just got the same error today and my system would not boot i cut the power to the PS. and turned it back on it would start to boot and hang i could barely get to the windows logo sometimes the vid card wouldnt even boot the logo to the screen. This is with an updated mobo that msi sent me that i had just put in , it seemed to run fine at first then this problem started occuring.  The only difference i had in the setup from the previous outdated board was i had the mem in DIMM 3 and not DIMM 1, so i moved the memory back over to DIMM 3 and now the problem is gone. Just something for those of you with the same problem to try.
    Oh and i forgot one more issue, i cannot set the dram speed in the bios manually i have ddr 333 it should be 167 mhz so i set it to 4/5  and the system will not boot at all  i end up having to reset cmos.  I called MSI about that and they told me to just have it set to SPD , I said i know that and im fine with leaving it that way but it should let me set it manually if i wanted to and that i wondered if that had anything to do with the random " testing base and extended memory " problem.

    It was probably myt thread...
    http://www.msi.com.tw/program/e_service/forum/viewindex.php?threadid=6204&boardid=10&styleid=1
    Have done some testing with both DDR333 and DDR400 and my results are in the thread.
    Right no I'm using my DDR400 as DDR333, manually set to 167MHz, using DIMM1, and havn't seen any problems. I'll try the DIMM3 to see if I get any changes.
    And by the way.. I tried setting my DDR400 manually to 200MHz and it wouldn't boot at all. After a lot of ugly language I finally got it back to the BIOS....after a reset of the CMOS.
    Seams like you should use SPD if you want to use the correct freq for your RAM.
    Have you tested the new 1.3 BIOS?

  • Examples for SAP Memory and ABAP Memory

    Hi all,
        can u give me one example of sap memory and abap memory.
                                              Ranjith

    Hi,
    <b>SAP Memory</b>
    SAP memory is a memory area to which all main sessions within a SAPgui have access. You can use SAP memory either to pass data from one program to another within a session, or to pass data from one session to another. Application programs that use SAP memory must do so using SPA/GPA parameters (also known as SET/GET parameters). These parameters can be set either for a particular user or for a particular program at the time of logon using the SET PARAMETER statement. Other ABAP programs can then retrieve the set parameters using the GET PARAMETER statement. The most frequent use of SPA/GPA parameters is to fill input fields on screens .
    <b>example:</b>
    ABAP programs can access the parameters using the SET PARAMETER and GET PARAMETERstatements.
    To fill one, use:
    SET PARAMETER ID pid FIELD f
    This statement saves the contents of field f under the ID pid in the SAP memory. The ID pid can be up to 20 characters long. If there was already a value stored under pid, this statement overwrites it. If you double-click pid in the ABAP Editor, parameters that do not exist can be created as a Repository object.
    To read an SPA/GPA parameter, use:
    GET PARAMETER ID pid FIELD f.
    This statement places the value stored under the pid ID into the variable f. If the system does not find any value for pid in the SAP memory, sy-subrc is set to 4. Otherwise, it sets the value to 0.
    <b>ABAP Memory</b>
    ABAP memory is a memory area that all ABAP programs within the same internal session can access using the EXPORT and IMPORT statements. Data within this memory area remains throughout a sequence of program calls, with the exception of LEAVE TO TRANSACTION. To pass data to a program that you are calling, the data needs to be placed in ABAP memory before the call is made from the internal calling session using the EXPORT statement. The internal session of the called program then replaces that of the calling program. The program called can then read from the ABAP memory using the IMPORT statement. If control is then returned to the program that made the initial call, the same procedure operates in reverse.If a transaction is called using LEAVE TO TRANSACTION, the ABAP memory and the call stack are deleted. They cannot be used for data transfer.
    Since objects belonging to ABAP objects can only be accessed within an internal session, it does not make sense and is therefore forbidden (from a syntax point of view) to pass a reference to an object to a calling program through the ABAP memory.
    <b>Example:</b>
    Export hello to memory id 'Hello_world'.
    Import hello from memory id 'Hello_world'
    Regards
    Sudheer

  • Reducing app size and using memory

    Building with release preference Blank App template will give you a ~200kb .exe, which in running state use ~7mb of memory.
    It has a huge list of external dependencies.
    So, is it possible to reduce app size and using memory?
    Or, how safely unlink from app headers that really didnt used?

    generally speaking  premature optimization is not a good idea.
    Normally those tricks we learned from stone age are picked by tools already.
    (http://stackoverflow.com/questions/6215782/do-unused-functions-get-optimized-out)
    So if you experice performance/optimization issue
    optimization ususally goes with repeated measure -> optimize -> verify
    cycles.

  • SHARED MEMORY AND DATABASE MEMORY giving problem.

    Hello Friends,
    I am facing problem with EXPORT MEMORY and IMPORT MEMORY.
    I have developed one program which will EXPORT the internal table and some variables to the memory.This program will call another program via background job. IMPORT memory used in another program to get the first program data.
    This IMPORT command is working perfect in foreground. But  it is not working in background.
    So, I have reviewed couple of forums and I tried both SHARED MEMORY AND DATABASE MEMORY.  But no use. Still background is giving problem.
    When I remove VIA JOB  parameter in the SUBMIT statement it is working. But i need to execute this program in background via background job. Please help me . what should I do?
    pls find the below code of mine.
    option1
    EXPORT TAB = ITAB
           TO DATABASE indx(Z1)
                FROM   w_indx
                CLIENT sy-mandt
                ID     'XYZ'.
    option2
    EXPORT ITAB   FROM ITAB
      TO SHARED MEMORY indx(Z1)
      FROM w_indx
      CLIENT sy-mandt
      ID 'XYZ'.
       SUBMIT   ZPROG2   TO SAP-SPOOL
                      SPOOL PARAMETERS print_parameters
                       WITHOUT SPOOL DYNPRO
          *_VIA JOB name NUMBER number*_
                       AND RETURN.
    ===
    Hope every bidy understood the problem.
    my sincere request is ... pls post only relavent answer. do not post dummy answer for points.
    Thanks
    Raghu

    Hi.
    You can not exchange data between your programs using ABAP memory, because this memory is shared between objects within the same internal session.
    When you call your report using VIA JOB, a new session is created.
    Instead of using EXPORT and IMPORT to memory, put both programs into the same Function Group, and use global data objects of the _TOP include to exchange data.
    Another option, is to use SPA/GPA parameters (SET PARAMETER ID / GET PARAMETER ID), because SAP memory it is available between all open sessions. Of course, it depends on wich type of data you want to export.
    Hope it was helpful,
    Kind regards.
    F.S.A.

  • Regarding import and export memory

    hi, currently i have encountered this problem when i am using the import and export memory statement. After i export my table name from program1 to program2, i do an import statement at program2 to retrieve the table name but there is a problem in retrieving the name. Below are the codes.
    PROGRAM1's codes:
    EXPORT IO_TABLE TO MEMORY ID MEM_STR.
    SUBMIT PROGRAM2 AND RETURN.
    PROGRAM2's codes:
    IMPORT IO_TABLE TO MEMORY ID MEM_STR.
    P_TABLE = IO_TABLE.
    FREE MEMORY ID MEM_STR.
    CLEAR MEM_STR.

    Check these programs they are working fine, the report ZCALLING calls the report ZCALLED.
    REPORT ZCALLING.
    DATA:
    BEGIN OF IO_TABLE OCCURS 0,
       MATNR TYPE MARA-MATNR,
    END OF IO_TABLE.
    IO_TABLE-MATNR = '38'.
    APPEND IO_TABLE.
    EXPORT IO_TABLE TO MEMORY ID 'MEM_STR'.
    SUBMIT ZCALLED AND RETURN.
    REPORT  ZCALLED.
    DATA:
    BEGIN OF IO_TABLE OCCURS 0,
       MATNR TYPE MARA-MATNR,
    END OF IO_TABLE,
    P_TABLE LIKE STANDARD TABLE OF IO_TABLE WITH HEADER LINE.
    IMPORT IO_TABLE FROM MEMORY ID 'MEM_STR'.
    P_TABLE[] = IO_TABLE[].
    LOOP AT P_TABLE.
    WRITE P_TABLE-MATNR.
    ENDLOOP.

  • SQL Dev 2.1:Ability to save and load visual query models?

    At SQL Dev 2.1, do we now have the ability to save and load visual query models as with TOAD? Or has that functionality been rolled into the for-pay Data Modeler extension? Seemed strange to hide the functionality deep within SQL Worksheet, then not allow query models to be saved or loaded. From what I recall, load/save was scheduled to be in 2.0.
    I've not yet downloaded and installed 2.1, but also as I recall, it was promised to be a significant (e.g. new-feature rich) release. Has it lived up to that promise? Hoping also that it's not so buggy as to not merit an upgrade. At my workplace, folks have different versions of SQL Dev 1.X installed, each for the purpose of retaining functionality that got broken in future releases, etc. Would love to be able to advise them to retire their 1.X installs in favor of 2.1.
    Edited by: Dana N on Jan 21, 2010 6:45 AM

    Dana, We are working on the query builder. We have not done anything with it in recent releases as we knew that it needed completely overhauled and a
    couple of bug fixes were not going to give us the query builder we needed. Sue will be able to tell you more as the we get closer to releasing it as a feature.Thanks Barry. I know it's probably impossible to give firm dates, but my colleagues would love to know, ballpark, when query builder might be ready. Any particular year/quarter that's targeted for?
    A lot of the bugs in the 2.1 are probably my fault as we decided to build a framework which allowed tasks to be scheduled like eclipse and push them to the
    background. Coupled with this, we tore apart the worksheet to allow us to fit tasks in, but to also give us the ability to do some of the enhancement requests
    that you guys, our users, have been asking for. While its not perfect, I believe its getting much better from both a functionality and performance standpoint. The
    worksheet will not change again and there are no enhancements logged or scheduled which will do that. The issues that have come as part of 2.1 are being
    addressed and we are fixing the highest priority ones as we speak. One of my priorities is to make these components as rock solid as possible.Thanks again. It really is a nice tool to work with, and I'm grateful to have it. I would choose stability for existing features over new ones, but I suppose there always has to be a balance in development. What was really scary in the past was getting bizarre / wrong answers in query results--that's a complete show stopper; e.g. clicking on a row/col intersection in a result set row would show strange and false values. New features can wait, but core functionality must be solid. If one can't presume integrity of query results, it's game over--using a version of SQL Developer that returns inconsistent result sets between runs could be Considered Harmful, or so it is to me.
    Anyway, thanks for responding and I hope Oracle Corp gets you whatever assistance you need to improve the quality of existing functionality while adding new features; with one not being at the expense of the other. :-) Glad also to see Sue has authored a book on the tool. Hopefully that will drive customer demand and force increased allocation of development resources toward the product. I'd like to think having out-of-the-box tools that are a joy to use might even increase market share.
    Data Modeler I would love to use, but am completely priced out of it. Enterprise Architect from Sparx Systems is the best value there so far as I can tell.
    Dana

Maybe you are looking for

  • 110v and 220v?

    We're getting ready to buy our new iMacs, which we'll buy here, but we thought of buying the Airport Extreme in the US next month while we're there (it's cheaper). Does it automatically switch from 110v to 220v or do we have to buy it here? (Israel)

  • Provide syntax with multiple infotypes?

    Hi, If i take one infotype data we are taking like this... PROVIDE * FROM P0002 BETWEEN PN-BEGDA AND PN-ENDDA. WRITE: P0002-PERNR, P0002-NACHN, P0002-VORNA. ENDPROVIDE. But i want multiple infotypes data like 0000,0006,0008....?Give me the syntax of

  • Change the description of Custom transaction

    Hi All Business requirement is to change the description of custom transaction. I have changed in SE93. But, now this change should appear in all the roles(single and composite) wherever this transaction used. Do I need to update each role or Do we h

  • Type of plastic used for the nano

    Does anyone know the type of plastic used for the front of the nano. I am just trying to find out so I could see if that Novus 2 scratch remover will work. Thanks

  • Field selection for Notification type

    Hi all, I have a configured  a notification type. I want to hide unwanted fields . I checked for " Set Field Selection for Notifications" in spro but  i am not able to find these fields. The Fields are under below tabs location Data Tab 1.Room-ILOA-M