Want to create a model for effective memory utilization with faster access

Can someone help me I am looking for a solution to a problem. Problem description is as follows:
We have a data model like:
name
City
Address
Zipcode
1. we have a huge numbesr(millions) of such objects availiable in the memory.How can i make a good design for the better memory utilization.
Means in which structures data should be stored in a memory to make effective memory utilizaion.We already have data structures like hashmap
,hashtable but beyond that can we use them or use other data structures in such a way that memory utilized by these objects is minimal.
2. design should be created keeping in mind that we can apply filters on any of the model attributes.(like if we want to see data of those
objects only where city name is newyork) so filtering done on the data should be fast.

Perhaps you're trying to solve the wrong problem? If the true objective is "to retrieve data as quickly as possible," perhaps you should investigate a database rather than trying to squeeze things into the smallest possible memory footprint? You'd have to have some pretty hefty hardware to keep "millions" of records in memory in addition to applications, server, OS, IP stack, etc.
But only people closest to the application can make that assessment. Just offering it as an possible alternative to consider.

Similar Messages

  • I want to create home page for my application with short URL

    I want to create home page for my application with short URL
    as when I want user to use my application user must go to URL like this
    http://127.0.0.1:7101/My-Project/faces/app/empModule/allEmployees/viewMyEmployees.jspxI want the user to use short URL , How can I use shorter URL not all this one.
    I want shorter URL for my application not to write full path .
    thanks in advance.
    Edited by: user611775 on Oct 31, 2010 10:21 PM

    Well,
    it's up to you. The first part (Mcit-Project-ViewController-context-root) is the context root which you define in the view controller project. 'faces' is the name the servlet filter reacts on. You can't omit it but shorten it in web.xml. The rest is your directory structure. I'm not sure how to shorten this other as to move the jspx files back into the web root folder.
    By the way an ADF faces app never uses the .jspx at the end of the url. If you specify '.jspx', you only render the page but don't start the work flow.
    Timo

  • Getting the following error while creating the model for webdynpro app.

    Plugin Name: Web Dynpro Model Editor Services
    Plugin ID  : com.sap.ide.webdynpro.service.modeleditor
    Class      :ap.ide.webdynpro.modeleditor.wizards.model.              creation.ModelDialog
    Method     : nextPressed
    Exception  : org.eclipse.swt.SWTException: Failed to  execute runnable (java.lang.NoClassDefFoundError)
    This is the error i am getting while creating the model for the webdynpro application. Can some one help ?
    Thanks & Regards
    Lalith

    hi
    This error occurs mainly due to the reason that particular plugin is not there in the NWDS.
    So please try to reinstall the NWDS or try tracing out whether that particular plugin is there or not.
    Thank,
    kris

  • Want to create program (XYZ) for scheduling anther program(ABC)

    Requirement :
    I have one report ABC and I want to create program XYZ for scheduling the report ABC (without executing the program ABC ).
    Output : Program XYZ
    1) schedule the report ABC
    2) Provide the output of ABC

    Seee if the below code help:
    REPORT Z_MQSCHD NO STANDARD PAGE HEADING LINE-SIZE 170 LINE-COUNT 58 .
    DATA: ZCOUNT            LIKE SY-TABIX,
          JOBNAME           LIKE TBTCJOB-JOBNAME,
          PARAMS            LIKE  PRI_PARAMS,
          JOBCOUNT          LIKE TBTCJOB-JOBCOUNT,
          AUTHCKNAM         LIKE  TBTCJOB-AUTHCKNAM,
          SDLSTRTTM         LIKE  TBTCJOB-SDLSTRTTM,
          SDLSTRTDT         LIKE  TBTCJOB-SDLSTRTDT,
          VARIANT           LIKE  RALDB-VARIANT,
          REPORT            LIKE  SY-REPID,
          ZTIME             LIKE SY-UZEIT,
          PREDJOB_CHECKSTAT LIKE TBTCSTRT-CHECKSTAT,
          PRED_JOBCOUNT     LIKE TBTCJOB-JOBCOUNT,
          PRED_JOBNAME      LIKE TBTCJOB-JOBNAME,
          RELEASED          LIKE  BTCH0000-CHAR1.
    *email variables
    DATA:  emailaddr(80)     TYPE c.
    data: objtxt           like solisti1   occurs 10 with header line.
    data: tab_lines        like sy-tabix.
    DATA: OBJECT_HD_CHANGE LIKE SOOD1.
    DATA: OBJECT_TYPE LIKE SOOD-OBJTP.
    DATA: OBJCONT LIKE SOLI OCCURS 0 WITH HEADER LINE.
    DATA: RECEIVERS LIKE SOOS1 OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN: BEGIN OF BLOCK A1 WITH FRAME TITLE TEXT-001.
    PARAMETERS:
            NAME LIKE RS38M-PROGRAMM OBLIGATORY,
            VAR  LIKE RS38M-SELSET  OBLIGATORY,
            JOB  LIKE TBTCJOB-JOBNAME,
            FRQ1 LIKE SY-INDEX,
            FRQ2(2) TYPE C.
    SELECTION-SCREEN END OF BLOCK A1.
    SELECTION-SCREEN: BEGIN OF BLOCK A2 WITH FRAME TITLE TEXT-002.
    PARAMETERS: ZDATE LIKE SY-DATUM DEFAULT SY-DATUM OBLIGATORY.
    SELECT-OPTIONS:
            TIME1 FOR SY-UZEIT OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK A2.
    SELECTION-SCREEN: BEGIN OF BLOCK A3 WITH FRAME TITLE TEXT-003.
    PARAMETERS:  p_mail       AS CHECKBOX DEFAULT 'X'. "X = Mail report
    SELECT-OPTIONS: so_mlist FOR emailaddr.
    SELECTION-SCREEN END OF BLOCK A3.
    AT SELECTION-SCREEN ON FRQ2.
      IF FRQ2 NE 'H' AND FRQ2 NE 'M' AND FRQ2 NE 'S'.
        MESSAGE E001(Z1) WITH 'Time Unit must be H or M or S'.
      ENDIF.
    AT SELECTION-SCREEN ON ZDATE.
      IF ZDATE < SY-DATUM.
        MESSAGE E001(Z1) WITH 'Date must be greater than current date'.
      ENDIF.
    AT SELECTION-SCREEN ON TIME1.
      IF ZDATE = SY-DATUM AND TIME1-LOW < SY-UZEIT.
        MESSAGE E001(Z1) WITH 'Time must be greater than current time'.
      ENDIF.
    AT SELECTION-SCREEN OUTPUT.
      IF JOB IS INITIAL.
        JOB = NAME.
      ENDIF.
    $$* Start of selection
    START-OF-SELECTION.
      IF JOB IS INITIAL.
        JOB = NAME.
      ENDIF.
      clear params.
      call function 'GET_PRINT_PARAMETERS'
           EXPORTING
                mode           = 'CURRENT'
                no_dialog      = 'X'
           IMPORTING
                out_parameters = params.
      params-paart = 'X_PAPER'.
      ZTIME       = TIME1-LOW.
      JOBNAME      = JOB.
      VARIANT      = VAR.
      REPORT       = NAME.
      AUTHCKNAM    = SY-UNAME.
      PARAMS-PRIMM = SPACE.
      SDLSTRTDT    = ZDATE.
      CLEAR: ZCOUNT.
      WHILE ZTIME LE TIME1-HIGH.
        SDLSTRTTM = ZTIME.
        CALL FUNCTION 'JOB_OPEN'
             EXPORTING
                  JOBNAME  = JOB
             IMPORTING
                  JOBCOUNT = JOBCOUNT
             EXCEPTIONS
                  OTHERS   = 4.
        CALL FUNCTION 'JOB_SUBMIT'
             EXPORTING
                  AUTHCKNAM = AUTHCKNAM
                  JOBCOUNT  = JOBCOUNT
                  JOBNAME   = JOB
                  PRIPARAMS = PARAMS
                  REPORT    = REPORT
                  VARIANT   = VARIANT.
        CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  SDLSTRTDT        = SDLSTRTDT
                  SDLSTRTTM        = SDLSTRTTM
                  JOBCOUNT         = JOBCOUNT
                  JOBNAME          = JOB
             IMPORTING
                  JOB_WAS_RELEASED = RELEASED.
        IF RELEASED = 'X'.
          WRITE: / 'Job', JOBNAME, '(' ,JOBCOUNT, ')' ,'will run at', ZTIME,
              'on', ZDATE, 'with program',NAME, 'and variant', VAR.
          IF NOT P_MAIL IS INITIAL.
            CLEAR OBJCONT.
            CONCATENATE
            'Job' JOBNAME '(' JOBCOUNT ')' 'will run at' ZTIME 'on' ZDATE
           'with program' NAME  'and variant'  VAR
            INTO OBJCONT SEPARATED BY SPACE.
            APPEND OBJCONT.
          ENDIF.
        ELSE.
          WRITE: /
         'Unable to release job', JOBNAME, '(' ,JOBCOUNT, ')' ,'at', ZTIME,
            'on', ZDATE, 'with program',NAME, 'and variant', VAR.
          IF NOT P_MAIL IS INITIAL.
            CLEAR OBJCONT.
            CONCATENATE
           'Unable to release job' JOBNAME  '('  JOBCOUNT ')'  'at'  ZTIME
           'on' ZDATE 'with program' NAME  'and variant'  VAR
            INTO OBJCONT SEPARATED BY SPACE.
            APPEND OBJCONT.
          ENDIF.
        ENDIF.
        CASE FRQ2.
          WHEN 'H'.
            ZTIME = ZTIME + ( 60 * 60 * FRQ1 ).
          WHEN 'M'.
            ZTIME = ZTIME + ( 60 * FRQ1 ).
          WHEN 'S'.
            ZTIME = ZTIME + FRQ1.
          WHEN OTHERS.
        ENDCASE.
      ENDWHILE.
      IF NOT P_MAIL IS INITIAL.
        CHECK NOT SO_MLIST IS INITIAL.
        PERFORM SENDEMAIL.
      ENDIF.
    *&      Form  SENDEMAIL
          text
    -->  p1        text
    <--  p2        text
    FORM SENDEMAIL.
      clear objcont.
      append objcont.
      append objcont.
      concatenate
      'This e-mail was sent from an automated system...' sy-sysid sy-mandt
         into objcont.
      append objcont.
      clear objcont.
      objcont = 'Do not reply to this message.'(013).
      append objcont.
      MOVE: SY-LANGU TO OBJECT_HD_CHANGE-OBJLA,
            'NOTIFICATION' TO OBJECT_HD_CHANGE-OBJNAM,
            'Report from job scheduler' TO OBJECT_HD_CHANGE-OBJDES.
      MOVE 'RAW' TO OBJECT_TYPE.
      describe table objtxt lines tab_lines.
      read table objtxt index tab_lines.
    *Now we will create the packing list entry for our text body.
      describe table objtxt lines tab_lines.
      read table objtxt index tab_lines.
      OBJECT_HD_CHANGE-OBJLEN  = tab_lines * 255.
    *in this next section we create our recipient list.
      LOOP AT so_mlist.
        clear RECEIVERS.
        move so_mlist-low to RECEIVERS-RECEXTNAM.
        MOVE 'U' TO RECEIVERS-RECESC.
        APPEND RECEIVERS.
        if not so_mlist-high is initial.
          move so_mlist-high TO RECEIVERS-RECEXTNAM.
          MOVE 'U' TO RECEIVERS-RECESC.
          APPEND RECEIVERS.
        endif.
      ENDLOOP.
      CALL FUNCTION 'SO_OBJECT_SEND'
           EXPORTING
                OBJECT_HD_CHANGE           = OBJECT_HD_CHANGE
                OBJECT_TYPE                = OBJECT_TYPE
           TABLES
                OBJCONT                    = OBJCONT
                RECEIVERS                  = RECEIVERS
           EXCEPTIONS
                ACTIVE_USER_NOT_EXIST      = 1
                COMMUNICATION_FAILURE      = 2
                COMPONENT_NOT_AVAILABLE    = 3
                FOLDER_NOT_EXIST           = 4
                FOLDER_NO_AUTHORIZATION    = 5
                FORWARDER_NOT_EXIST        = 6
                NOTE_NOT_EXIST             = 7
                OBJECT_NOT_EXIST           = 8
                OBJECT_NOT_SENT            = 9
                OBJECT_NO_AUTHORIZATION    = 10
                OBJECT_TYPE_NOT_EXIST      = 11
                OPERATION_NO_AUTHORIZATION = 12
                OWNER_NOT_EXIST            = 13
                PARAMETER_ERROR            = 14
                SUBSTITUTE_NOT_ACTIVE      = 15
                SUBSTITUTE_NOT_DEFINED     = 16
                SYSTEM_FAILURE             = 17
                TOO_MUCH_RECEIVERS         = 18
                USER_NOT_EXIST             = 19
                ORIGINATOR_NOT_EXIST       = 20
                X_ERROR                    = 21
                OTHERS                     = 22.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " SENDEMAIL

  • Want to create F1 Help for radio button in my report

    Hi All,
          I want to create F1 Help for radio button in my report program. Which function module should i call in <b>at selection screen on help-request</b>
          Also do I need to define the texts somewhere or I can pass it directly to the function module.

    Try DYN_FIELD_F1_HELP,
    ~Suresh
    that is only for Dic fields..
    Pl take alook at this<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/79/34a243d9b511d1950e0000e8353423/frameset.htm">SAP Help</a>
    ~Suresh
    Message was edited by: Suresh Datti

  • I want to create a SWF for my small web site. How do I do this? Do I need to purchase "Flash Builder"?

    I want to create a SWF for my small web site. How do I do this? Do I need to purchase "Flash Builder"?

    Hi Developer_46038, 
    if for example all the properties and object are stated as list, i think there is a tool that overcome cross list.
    http://listrollup.codeplex.com/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/13a51be5-4007-46e8-bbb2-5e04320dfebd/cross-list-webpart?forum=sharepointcustomizationlegacy
    you can also using dataview webpart to show the cross lists:
    http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-data-view-HA010094804.aspx
    http://office.microsoft.com/en-us/sharepoint-designer-help/connect-two-data-views-HA010169133.aspx
    3rd party: http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/03/11/relational-database-capabilities-for-sharepoint-lists-cross-list-web-part.aspx
    but i am not quite sure how crystal report will do, if you can make the crystal report as also list, i think its possible, 
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8247edf5-dee8-49d8-b7ee-9e49bfd97b9b/crystal-report-in-sharepoint-2010-webpart?forum=sharepointdevelopmentprevious
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Can you use Google SketchUp to create 3D models for Motion

    Can Google's SketchUp Pro be used to create 3D models for use in Motion?
    I'm having problems finding the file types that SketchUp produces and Motion requires.
    Thanks for any help in this.

    Zaxwerks Pro Animator does a pretty good job of creating a 2 3/4D models.   That is it appears to be 3D as you move around the object until you cross the objects plane. Then it looks 2D.   Kinda like moving around particles that are set to 3D.
    ProAnimator would be alright but it's rather difficult to texture and I was just wondering if SketchUp Pro would be importable into Motion.
    Thanks for the responce.
    DH

  • I want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these

    i want to create org data profile in service scenario, with price determination from sales org, distribution centre , can any one help me with these
    IF I CREATE SERVICE ORG WITH SERVICE SCENARIO ORG DATA PROFILE,
    MY PRICING IS NOT GETTING DETERMINED AS IT IS LINKED TO SALES ORG AND DISTRIBUTION CHANNEL THROUGH PRICING DETERMINATION SO HOW TO DO THE CUSTOMIZATION FOR THIS SITUATION
    WITH REGARDS,
    SATHISH

    Hi Satish,
    Please assign the org det. rules to org det. profile with Sales and Service scenarios and then assign the org. det. profile to transaction type. The below screenshot is just for your reference.
    Hope it would fix your issue.
    Regards,

  • Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help.

    Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help., Hello, I want to make DPS magazin for IOS and Android with a lot of text footnotes. There is about 200 footnotes per article. The idea is to make pop-up windows like in EPUB 3.0. Please help.

    Remember you can only build an iPad app using your Single Edition solution (which is included in your CC membership). So you'd need a Pro or Enterprise version of DPS to be able to create the Android version.
    You can create pop-ups in InDesign using the slideshow options and a multi-state object. But it's all manual labour so you'll spend a lot of time on this, also depending on the layout of your design.

  • How can create air app for version 1.5 with cs5?

    How can be created an application for the latest Adobe AIR version ( 1.5 ) with Flash CS5. I have a licensed cs3 and I consider to buy cs5. I want to create an applications for the stable version of Adobe AIR.

    I posted about this last week. This should help:
    http://forums.adobe.com/message/2829283#2829283

  • Creating Web service for PL/SQL Procedure with Complex Data Types

    I need to created web service for PL/SQL Procedure with Complex Data types like table of records as parameters, how do we map the pl/sql table type parameters with web service, how to go about these?

    Hello,
    When you are creating a service from a Stored Procedure, the OracleAS WS tools will create necessary Java and PL wrapper code to handle the complex types (table of record) properly and make them compatible with XML format for SOAP messages.
    So what you should do is to use JDeveloper or WSA command line, to create a service from your store procedure and you will see that most of the work will be done for you.
    You can find more information in the:
    - Developing Web Services that Expose Database Resources
    chapter of the Web Service Developer's guide.
    Regards
    Tugdual Grall

  • I am using Lightroom on my MAC where I import the finalized JPEG-pictures into iPhoto to create a slideshow (for instance in combination with films). When exporting the slideshow with a 1080p resolution to iTunes I experience difficulties (missing slides

    I am using Lightroom on my MAC where I import the finalized JPEG-pictures into iPhoto to create a slideshow (for instance in combination with films). When exporting the slideshow with a 1080p resolution to iTunes I experience difficulties (missing slides and black transitions). When using JPEG-pictures directly from the camera there are no problems, so the manipulation in Lightroom seem to cause corrupt files. Does anyone recognize tje problem and could it have anything to do with the introduction of the Yosemite software? Is Lightroom already Yosemite-proof?

    In iPhoto 11 the Originals folder is renamed Masters.
    IPhoto menu -> Provide iPhoto Feedback and report the bug.
    Regards
    TD

  • Create a model for WebDynpro

    Hello everybody:
    I have created the navigation view for an application, with all the fields and stuff. However, I do need Database access (it's some kind of a school management system) for normal things such as login, etc.
    I've learned that for linking a WebDynpro app and database (model) EJB are the way to go. However I find it way to "square", after reading the "Car Rental" tutorial. I doesn't leave much room for changes and it requires the web service to be perfect and then be imported for my model... is there another way to link or to create a model?.... I don't want to "Import" the model, but create it.
    Thanks everyone in advance
    Alejandro

    hi
    if you are creating your table and other data stuffs in the abap side. you can connect to the R3 side and get data. try this link for help in doing that
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/creating a web dynpro application accessing abap functions.pdf
    and if you are using oracle you can use ejb and  you can connect to it using the code below
    InitialContext ic = new InitialContext();
    Object obj = ic.lookup("localejbs/<Name of EJB project>/<Bean name>");
    UrlEjbLocalHome home = (UrlEjbLocalHome)javax.rmi.PortableRemoteObject.narrow                                                                               
    (obj,UrlEjbLocalHome.class);
    UrlEjbLocal ejbs = home.create();
    //Write the following code as a function in your EJB and call it after the above given code using the object of type 'UrlEjbLocal' named 'ejbs'
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@<IPAdd>:<Port>:<DBName>",
                             <LoginId>,
                             <PassWd>);
    hope this might help you.

  • Want to create RFC FM for Getting data in CRM from R/3

    Hi,
    I have made the RFC connection in CRM system , now I want to make RFC FM for getting data from R/3 'MARD' table into CRM, If any one help me how to do this.
    From CRM system I will pass Plant & material no to FM and I need Storage location & Storage Bin from R/3 MARD table in CRM.
    Thanks
    Bobby

    Dear Bobby,
    You would create a FM in SE37 select 'Remote Enabled Module' radio-button in attributes tab of Function Builder.
    Select matnr werks LGORT LGPBE
               from MARD
               into ET_MARD
               where matnr = i_matnr
               and  werks = i_werks.
    Note:
    matnr is material number
    werks is plant
    LGORT is storage location
    LGPBE is storage bin
    Hope this will help.
    Regards,
    Naveen.

  • I want to create an eBook for iPad , Mac and "iPhone".

    While I was beginning with creating an eBook with iBookAuthor, I didn't know that the target group iPhone user is missed.
    I want to create and publish an eBook, which is intended for iPad, Mac and iPhone users.
    Does somebody know, which software would be the best?

    Fattissimo wrote:
    I 've tested it, the program doesn't accept ePub files.
    Of course iTunes Producer is supposed to accept .epub files.  If yours are not working, I suggest you try to contact Apple via the means indicated at the bottom of the FAQ
    http://www.apple.com/itunes/working-itunes/sell-content/books/book-faq.html
    Also you could post your specific issue, with any error messages, in the forum for epub issues:
    Creating ePubs

Maybe you are looking for

  • Audigy 4 Microphone Issue, He

    I recently purchased an Audigy 4 Sound Card. My headset was a logitech; it worked fine right up until I installed the Audigy 4. Now I've got awesome sound, but cannot record; or talk in my Teamspeak. I've done all the normal checks in making sure my

  • HOST function does not redirect de output (result)

    Hi, I am trying to use HOST to run the Findstr (or find) command, it executes the command but if I use '>' to send the result to a File it doesn´t create the file. Instead if I use 'Dir' command or if I run 'findstr' directly from the DOS prompt, it

  • Organizing in the iPhone 3G

    How do you create new folders and organize photos on an iPhone 3G? I would like to put Artwork in one plce and family in another. I see only camera roll. Last night's party should not be next to my sweet little niece. Thanks.

  • Where do the properties save to?

    When System.setProperty() got called, which file actually contains the information? and where?(normally) Cheers,

  • Definitions on iOS 8

    Hi, I've installed iOS 8 on my iPhone 5s and tried to use the definitions on text and it doesn't recognise the word with the definition coming up blank. I try to add dictionaries and it won't let me add or delete ddictionaries and just seems to ident