Geocoding takes VERY long for the first call in each session

Hello

We are moving to a system of very short response time where the user sends a query via mobile phone to our based Oracle server and the response THAT SMS must return a list of points of interest at a certain distance from the mobile phone.

Previously we were using Oracle 9i, now we went to 10g (EE 10.2.0.4.0). Given that 10g supports geocoding out of the box, we intend to use it. What we are experiencing, this is when we create a new session, and then the first geocoding/reverse_geocode call takes about 1 minute in our test environment (that means 100% CPU load on the side of Oracle Server), the following calls are in the [http://0.1.. 0.6] second intervals. We only use sdo_gcdr.reverse_geocode () and sdo_gcdr.geocode () procedures.

In a space book, we found:
+ "Note: the first call to a function of geolocation in a session requires several time (is longer) than subsequent calls." +
"+ Is because the function must load and analyze arrays of profile". +

Profile of tables do not change, why is he not analyzed at the start of the RDBMS and only once, not for each session?

Is there a solution?

Kind regards
Tamas Szecsy

Published by: Tamas Szecsy on March 7, 2009 10:30

Published by: Tamas Szecsy on March 7, 2009 10:30

Published by: Tamas Szecsy on March 7, 2009 10:41

The patch that I suggest is precisely to allow the geocoder to work effectively in many countries. Its effect is to only load the profile for the country being geocoded. If profiles are loaded progressively as needed, avoiding the High overload at the beginning. With this patch, the first geocode a meeting is second.

The time you specify (a minute for the first geocoded in a session) clearly indicate a problem. If this problem is not with bad indexes on the table of the region, you can check the box caching (CACHED_ADMIN_AREA_LEVEL in GC_COUNTRY_PROFILE should be 0).

I think yiou need to capture a complete SQL trace of this first geocoded, so we can diagnose accurately what is happening.

Albert

Tags: Database

Similar Questions

  • My computer takes much longer for the initial start as before?

    Original title: startup

    my computer takes much longer for the initial start as before?

    I suggest to do the following:

    (1) Windows Update and install all updates

    (2) run disk clean up and defragnment

    Check disk run 3)

    Check 4) Add/Remove programs and uninstall programs you want

    (5) run full system scan, with:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    You can also take a look at:

    http://www.Microsoft.com/atwork/maintenance/speed.aspx

  • Why it takes so long for the BlackBerry vendor to deal with accounts?

    Why it takes so long for the BlackBerry vendor to deal with accounts?

    I put in my request 3 days ago, and it has not yet been verified.

    Hello

    Could you please PM me your name of the seller? Do you get the email that asks you to send the document ID/commercial? If this isn't the case, please try to chcek your spam folder.

    Kind regards

    Satya

  • How to get the date for the first Monday of each month

    Dear members,

    How to get the date for the first Monday of each month.

    I wrote the following code

    SELECT decode (to_char (trunc (sysdate + 30, 'MM'), 'DAY'), 'MONDAY', trunc (sysdate + 30, 'MM'), NEXT_DAY (trunc (sysdate + 30, 'MM'), "LUN")) FROM DUAL

    But he looks at complex bith.

    Abhishek

    Published by: 9999999 on 8 March 2013 04:30

    Use the IW format - it will make independent NLS solution. And all you need is truncated 7th day of each month using IW:

    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    /
    
    CURRENT_D FIRST_MON
    --------- ---------
    08-MAR-13 04-MAR-13
    
    SQL> 
    

    Here is the list of the first Monday of the month of this year:

    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
             )
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    /
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    
    FIRST_OF_ FIRST_MON
    --------- ---------
    01-DEC-13 02-DEC-13
    
    12 rows selected.
    
    SQL> 
    

    SY.

  • Is there a way to test for the first call of a function?

    Hello

    I created a function (using other functions I created) to generate a dynamic hierarchy tree menu based on parentID and itemID etc etc - I'm sure you are familiar with this concept. It works very well, and there is no problem.

    However, I do all this build in a string, and then dumped on the page. Again, this works very well. However, because the function is called recursively, my class, the class = 'tree' repeat itself in each occurrence of the opening UL tag.

    I want to only this class to be applied to the first UL, but because it is recursive, I don't know how to detect if the function is called for the first time or 5th time, etc.. I mean something like:

    < cfif myFunction is called the first time >
    Add the class
    < cfelse >
    do not add the class
    < / cfif >

    Please see my attached code. It is fully functional. Please don't worry that all the other functions do etc, they work very well, but I need a way or a variable to test against.

    Any ideas?

    Thank you very much
    Michael.

    Kapitaine wrote:
    > Hmmm, I bet that the solution is simple, but my mind is frazzled! Haha.
    >

    Yes, it's simple, you test the Boolean value and it will be true if it is
    set to true for a recursion.






    #somethingStupid(5,true) #.

  • I am in charge for the first time.  How long should it take?  I check battery during the charge percentage?

    I'm charging my Apple Watch 1 for the first time.  It has been more than 2 hours, and it shows the green lightning when I touch the face.  How long does take to recharge?  Is there a way to check the level of the battery during charging?  How can I tell when it is fully charged?

    You can take a look at this page of the Apple Watch user's Guide. http://help.Apple.com/watch/#/apd2b717523a

  • HP M602: M602 takes a long time for the first page of the printer

    I have a M602 when you send a print job, it takes 2 t o 3 minutes for the first page to print.  The following pages and then slowly but surely print.  The next print job then begins the same cycle.

    We had one where I work where it is one of the complaints and a firmware update seems to make a difference.

    Firmware update also tackle the problems of security and they are free.

    Firmware upgrade is found in the software section and drivers from the support page for your printer on hp.com.

    If my post is solved your problem and click the accepted as button solution under him.

    In order to thank a Tech for a post click the thumbs up button under the post.

    You can even click on the two keys...

  • Satellite L650D: how long I leave it on charge for the first time?

    recently bought this computer series Toshiba Satellite L650D and I was wondering how long I leave on the royalties for the first time to power?

    Help, please

    Hello

    My laptop is still connected to the power adapter, so would always charge the battery.
    But usually the battery led turn green if the battery should be fully charged.
    Let the adapter connected until this witness would turn to green or blue (based on the model that you bought for)

  • MacPro is impossible to call to PC machine for the first time

    I have the fllowing problem:

    I have two computers a MacPro machine another machine and PC. I use Adobe video Sample Application for testing of Stratus. When I run the application for the first time on both machines and try to make a call from Mac to PC, nothing happens. PC receives no notification call. However, when the PC tries to make a call to the MacPro machine, everything's fine.

    There is one exception:

    MacPro machine can make a call to the PC machine with the following condition

    1 - PC has already appealed a PC to MacPro.

    Therefore, if the PC has already appealed to MacPro, then after puts end the call (from anyside), MacPro can call PC and all is well.

    Can you get it someone please let me know why, for the first time, MacPro is impossible to call the PC machine?

    Thanks in advance.

    Simply allow the 1024-65535 UDP ports, UDP not all necessarily.

    This is not necessary if your NAT supported through, or if the PC was not behind the NAT as well as other computers you want to talk or if there is no NAT.

    Post edited by: Michael Thornburgh on Wednesday, may 5 05:27:13 UTC 2010

  • ICloud using photo library for the first time

    I am considering switching to iCloud photo library for the first time - mainly so I'll be able to use the new functionality of memories in iOS 10. However, I have quite a large library of Photos on my Mac and I'm worried about the mistakes of synchronization, bugs and any damage my irreplaceable photos. I have a Time Machine backup, but each backup on which generally only lasts a week or so, and with a large library of errors can take some time to appear. Should I be worried? Are there precautions I need to take?

    In view of all the people who use it, there are very few messages on issues. Since you have a backup, you can still recover. You can consider to get a 2nd external and make a copy of your photo library in order to have 2 backups. Depending on the size of your library, you may need to purchase additional iCloud storage as free storage space is 5 GB. With a large number of photos, it will take much time to complete the synchronization. Some people have posted their s took 2 to 4 weeks. Our respective synchronization went well and we had no problem.

    Downgrades and upgrades of storage

  • charge battery for the first time and the best practices for maintaining the life of the new PC laptop battery

    Received my first laptop as a gift today (Pavilion touchsmart 15-n287cl).  You need to know 1.  How long to charge it for the first time or first several times; 2 do you need to unload and reload between each use completely and how long should it take to charge an average before being used again.  3. Since no instructions is a good idea to leave it plugged when you use all the time or the battery should be removed to improve the conservation of life?

    Thank you in advance, it has taken a lot of time to migrate from the desktop.  Want it to be a positive experience.

    Hello

    Modern batteries and chargers are now smarter than you.

    1. you can plugin and immediately to use the machine, the machine will stop charge when the battery is fully charged.

    2. No, we don't need to unload completely between uses, then as above. The recommendation is sometimes we run machine on battery until that up to 10%.

    3. when using AC is a way to protect the unit during the failure of current, all of a sudden, leaving battery on laptop.

    Please read the following article:

    http://BatteryUniversity.com/learn/article/how_to_prolong_lithium_based_batteries

    Kind regards.

  • Click event does not work for the first choice of object field index

    Hello

    In my application, there is a ObjectChoiceField inMainScreen

    I want to get change Listner of ObjectChoiceField after clicking on index 0. When I am clicking on the second element of the choice field, I am able to move to another screen. But for the first selection of the element, it does not move on the screen.

    if(field == mOcfVehicle)
                {
                    Logger.out("MyProf", "vehicle choice field touched ");
                    int index = mOcfVehicle.getSelectedIndex();
                    Vector vecVID = store.getVehicleID("VehicleID");
                    final String strVehId = vecVID.elementAt(index).toString();
                    UiApplication.getUiApplication().invokeLater(new Runnable() {
    
                        public void run() {
                            // TODO Auto-generated method stub
                            UiApplication.getUiApplication().popScreen(MyProfScreen.this);
                            UiApplication.getUiApplication().pushScreen(new AddNewCarScreen(1, strVehId));
                        }
                    });
    //
                }
    

    Please help me...

    Here it happens little differently. I explain the requirement properly. Suppose that the I am A screen where I have the ObjectChoiceField. I added a choice of X. Now, when I am pressing on the field of choice and selection, it must pass on the screen (B) but that the choice of the field is choice (X) only one, it is not mobile. Now if, after the addition of the choice of two X and Y, if I select go, it's going to screen B. But when again, the field of choice has 2 options X and Y with X as the default selection. There is therefore no chance for me to choose the X.

    Therefore, I have added a Select called default choice. Now, if X is added, field of choice is the choice of towing display: Select and X. And while choosing X, it moves on the screen B.

    Hopefully now, it is good for understanding.

    And can help me please to this: http://supportforums.blackberry.com/t5/Java-Development/How-to-on-the-Camera-Flash-for-a-long-time-l...

    Thank you.

  • Why when saving a file already existing AI cs6 is acting like I am registering for the first time?

    Why when saving a file already existing AI cs6 is acting like I am registering for the first time? Assume that the file is called file.ai - when I'm working on that and go: Cmmand record - he said: ' replace file1.ai? I don't want to replace - simply record. What happens to me every few weeks in artificial intelligence. And it is a file that was NOT an older file - as I posted this Q once first before - and got no answer. Someone suggested that it might be that my file was from an older file. But no - this file is completely new. Work on it for a few days. Thank you very much!

    Applications > utilities > disk utility > repair permissions

  • Turn on iPhone 5 s for the first time?

    Hello

    I just bought all new iPhone 5 S in a shop and after I searched (google) answers with regard to the maintenance of the battery, I'm a bit confused. Some say it is wise to drain the battery until the phone turns off and that completely... some people say that is nonsense so that you must charge your phone charge straigh away from the box and don't let not phone to turn off... some are mentioning the procedure 3 hours but I know it's nonsense...

    Can you tell which procedure is best for the first time.

    Thank you very much.

    Here's what I consider some good advice on the pricing of your iPhone:

    When to charge your iPhone or iPad

  • Windows7 64 bit. Why the desktop icons all be empty when you run Firefox nightly for the first time?

    Every time after I get a Firefox Nightly update and run it, it will display the next page:
    https://www.mozilla.org/en-US/firefox/nightly/firstrun/?oldversion=30.0 which is fine.
    But when it opens this page, all my desktop icons go clear/white and one by one, they all return with their correct icons. And all this happens in a few seconds.
    Why is the operation of Firefox every night for the first time, my desktop icons?

    I suspect that you have both nightly and Firefox version installed?

    "The Firefox 'about' shows 30.0. and I've now checked for updates and are now running 33.1.1"
    

    It's different from what you have first published here with!
    Firefox 33.1.1 represents the latest version - a 32-bit version.

    Whereas, the version you first posted here with was a generation of 64-bit channel every night from July. Every night is for "Alpha-testers" and is updated every day, where the name of "night".

    Everything that happens in the background on the Windows desktop should not be of concern right now, every night Win 64 bit is several months out.
    If you really want to test the Win 64 Nightly builds, follow and participate in the very different evenings and son of 'channels' on MozillaZine forum is based.

Maybe you are looking for

  • Targeting of "empty trash".

    If I'm erasing the files from an SD card, I need to empty the trash in order to actually release space on the card. I know that I can do this within the camera, but when I'm dealing with the results of five different cameras in a project, it is much

  • How know when my free month expires?

    I just want to use my free month and then cancel, I will not be surprised with a supplement. (Unlimited, not Minutes)

  • Windows identity theft, account was stolen Hotmail

    Someone solen my hotmail account and changed the image and name, that do I report this too?

  • using the native image viewer

    IST is possible to invoke the native image viewer of my application to display pictures? When I send a jpg file on my device by email, I can see it. Then I have different options on the menu as zoom, fit to the screen, etc... I would use this native

  • Create a FilePicker for QML images

    I have a FilePicker in QML, and it works, sort of. The type property seems to not be recognized because it displays all kinds of file types. attachedObjects: [ FilePicker { id: imgPicker title: qsTr("Select a picture") type: FileType.Picture onFileSe