Re: Use of SetResultSizes() the last

Hi again,
May be to be tested with the SetMaxSize : DBSession.SetResultSize
Here is an extract of the help :
"You use the SetResultSizes method after setting the maximum size of any
columns using the SetMaxSize method or MaxRows attribute (both are in
the DBDataSet class), to set the expected size of any BinaryData objects
to be fetched. The size should be set after invoking the OpenCursor
method and before invoking the first FetchCursor."
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
URL : http://perso.club-internet.fr/dnguyen/
Joseph Mirwald wrote:
>
Hello Daniel,
i am very happy for your fast reply.
I tried to see differences between using SetMaxSize and use of
SetResultSizes, but the difference will not appear.
I use the methods in following manier:
self.DefaultDBSession.Prepare(...);
self.DefaultDBSession.OpenCursor(dynastatement,resultset);
resultset.MaxRows=MyRowCount;
resultSet.SetMaxSize(1,size_of_first);
resultSet.SetMaxSize(2,size_of_second);
resultSet.SetMaxSize(n,size_of_n);
self.DefaultDBSession.SetResultSizes(dynastatement,resultset);
recCount=self.DefaultDBSession.FetchCursor(dynastatement,resultset);
if recCount > 0 then
for eachRow in 1 to resultSet.ActualRows do
resultSet.CurrentRow=eachRow;
resultSet.GetValue(1,class.subclass);
end for;
end if;
self.DefaultDBSession.CloseCursor(dynastatement);
I test this with TextData,IntegerData and scalar types.
I just get more performance with scalar datatypes, but this is normal
without the methods above.
With the TextData and IntegerData Classes i see no difference. Maybe big
BinaryData will
get more performance (Or very big TextData). But I don't test it.
Questions:
1. I calculate the size, by looking in the variables with the debugger
before and set it how it's
calculated. Is there any information (Forte manual or TN) how to
calculate the size (size_of_first...)?
2. Is the position of the methods correct ( SetMaxSize(...) ) between open
and fetch, and before SetResultSizes()?
3. Makes it a better performance to set the resultSize one time (first call
of this method) and calculate it big enough for all
kind of fetches and hold it as long as the dbsession lives (horrible,
but maybe a solution)?
How i am able to get more performance using this features.
Thanks forward for any helpful reply.
At 14:12 21.01.99 +0100, you wrote:
Hi,
I didn't test the SetMaxSize, but I tested and used GetValue.
SetMaxSize should be an optimization for large objects similar
to the load of a text file into a TextData : if you know the
size of what you will load, it should be better to reserve
only that size.
GetValue has 2 signatures and one is given to be better :
- GetValue(name/position) : DataValue : easiest to use but it
instanciates the DataValue
- GetValue(name/position, result) : you instanciate yourself
the result and Forte makes a setvalue on it. It should result
to less instanciations, because you pass to Forte your own reference.
I tested the 2 solutions and couldn't see any real difference on
response time to be honnest, but I used optimized collections too.
A good way to optimize response time is to use the MaxRows parameter
of the FetchCursor (Default is one). It's the size of the buffer
between Forte and the Database for each fetch. You can gain large
factors, but you will pay it on memory of course.
I don't think there is a simple value for it : all this depends on
so much parameters (memory, size of the collection, database, ...).
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
URL : http://perso.club-internet.fr/dnguyen/
Joseph Mirwald wrote:
Hello Forte-Developers,
are you able to give a short example using this feature?
Are there any benefits which let me have more performance
by using ResultSet.GetValue()?
In the online-help of Forte ( SetMaxSize() ) i read following statement:
Note: The SetMaxSize method is optional. Using it will help performancewhen
the corresponding database type specifies a large object (for example,
BinaryData) and the size of the largest object is known beforehand.How to use this feature, and which value of size is the minimum to get more
performance?
Yepeeeeeeeeeeee... this is the last time this question trashes the mailing
list. I give up if nobody answers or is interested to know something about
using this methods.
Joseph Mirwald

Hi again,
May be to be tested with the SetMaxSize : DBSession.SetResultSize
Here is an extract of the help :
"You use the SetResultSizes method after setting the maximum size of any
columns using the SetMaxSize method or MaxRows attribute (both are in
the DBDataSet class), to set the expected size of any BinaryData objects
to be fetched. The size should be set after invoking the OpenCursor
method and before invoking the first FetchCursor."
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
URL : http://perso.club-internet.fr/dnguyen/
Joseph Mirwald wrote:
>
Hello Daniel,
i am very happy for your fast reply.
I tried to see differences between using SetMaxSize and use of
SetResultSizes, but the difference will not appear.
I use the methods in following manier:
self.DefaultDBSession.Prepare(...);
self.DefaultDBSession.OpenCursor(dynastatement,resultset);
resultset.MaxRows=MyRowCount;
resultSet.SetMaxSize(1,size_of_first);
resultSet.SetMaxSize(2,size_of_second);
resultSet.SetMaxSize(n,size_of_n);
self.DefaultDBSession.SetResultSizes(dynastatement,resultset);
recCount=self.DefaultDBSession.FetchCursor(dynastatement,resultset);
if recCount > 0 then
for eachRow in 1 to resultSet.ActualRows do
resultSet.CurrentRow=eachRow;
resultSet.GetValue(1,class.subclass);
end for;
end if;
self.DefaultDBSession.CloseCursor(dynastatement);
I test this with TextData,IntegerData and scalar types.
I just get more performance with scalar datatypes, but this is normal
without the methods above.
With the TextData and IntegerData Classes i see no difference. Maybe big
BinaryData will
get more performance (Or very big TextData). But I don't test it.
Questions:
1. I calculate the size, by looking in the variables with the debugger
before and set it how it's
calculated. Is there any information (Forte manual or TN) how to
calculate the size (size_of_first...)?
2. Is the position of the methods correct ( SetMaxSize(...) ) between open
and fetch, and before SetResultSizes()?
3. Makes it a better performance to set the resultSize one time (first call
of this method) and calculate it big enough for all
kind of fetches and hold it as long as the dbsession lives (horrible,
but maybe a solution)?
How i am able to get more performance using this features.
Thanks forward for any helpful reply.
At 14:12 21.01.99 +0100, you wrote:
Hi,
I didn't test the SetMaxSize, but I tested and used GetValue.
SetMaxSize should be an optimization for large objects similar
to the load of a text file into a TextData : if you know the
size of what you will load, it should be better to reserve
only that size.
GetValue has 2 signatures and one is given to be better :
- GetValue(name/position) : DataValue : easiest to use but it
instanciates the DataValue
- GetValue(name/position, result) : you instanciate yourself
the result and Forte makes a setvalue on it. It should result
to less instanciations, because you pass to Forte your own reference.
I tested the 2 solutions and couldn't see any real difference on
response time to be honnest, but I used optimized collections too.
A good way to optimize response time is to use the MaxRows parameter
of the FetchCursor (Default is one). It's the size of the buffer
between Forte and the Database for each fetch. You can gain large
factors, but you will pay it on memory of course.
I don't think there is a simple value for it : all this depends on
so much parameters (memory, size of the collection, database, ...).
Hope this helps,
Daniel Nguyen
Freelance Forte Consultant
URL : http://perso.club-internet.fr/dnguyen/
Joseph Mirwald wrote:
Hello Forte-Developers,
are you able to give a short example using this feature?
Are there any benefits which let me have more performance
by using ResultSet.GetValue()?
In the online-help of Forte ( SetMaxSize() ) i read following statement:
Note: The SetMaxSize method is optional. Using it will help performancewhen
the corresponding database type specifies a large object (for example,
BinaryData) and the size of the largest object is known beforehand.How to use this feature, and which value of size is the minimum to get more
performance?
Yepeeeeeeeeeeee... this is the last time this question trashes the mailing
list. I give up if nobody answers or is interested to know something about
using this methods.
Joseph Mirwald

Similar Messages

  • I just download and install itunes 10.5 and it worked good the first days but since yesterday it crashed up, and everytime i start it it crashes again and logged me out each time. it can´t acces my itunes account. I´m using snow leopard the last version.

    I just download and install itunes 10.5 and it worked good the first days but since yesterday it crashed up, and everytime i start it it crashes again and logged me out each time. it can´t acces my itunes account. I´m using snow leopard the last version. What can i do to solve this problem and and continue using my itunes normally?

    Try doing it in a WIndows Safe mode - Restart computer and hit F8 key right after your see BIOS check and choose "Safe mode with networking"
    Do the SFC /SCANNOW again.
    If that does not work, whilst in safe mode, download Free Malwarebyte software from CNET's Download.com.  Install, update virus definition then perform a full scan.  Remove if it did find some viruses or trojans.  Restart computer.
    Back to regular windows, do the SFC /SCANNOW again.
    If that doesnot work, check to see if your Hard drive has errors or bad sectors
    GO START BUTTON /COMPUTER, right mouse click OS (C:) and choose "Properties"
    Choose "Tools" tab and under error checking, click "Check Now".
    Make sure "Scan for and attempt recovery of bad sectors" is checked and click start.
    Restart windows will perform the above task to fix errors  This may take hours depends on how big is your Hard Drive
    Good Luck!!.

  • I have used Firefox for the last number of years but now it crashes upon opening.

    I have used Firefox for the last number of years but now it crashes upon opening. I have unistalled and installed (version 6) but still it crashes. It does not start in safe mode either. I have read the various help support but I seem to be going around in circles. I am not a computer geek so please bear with me. Thank you.

    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • I am being charged for 3 GB that apparently Verizon hadn't caught up on that I had used!! The last night of my cycle I called and checked and I had .5 GB left and right before midnight when the cycle ended it caught up on 3 GB!! I now have to pay for this

    SO CRAPPY!!! SO FED UP WITH VERIZON!! WE ARE GETTING SCREWED OVER!! I am being charged for 3 GB that apparently Verizon hadn't caught up on that I had used!! The last night of my cycle I called and checked and I had .5 GB left and right before midnight when the cycle ended it caught up on 3 GB!! I now have to pay for this data I know I did not use! I never have my data on!! Now it says I used 7 GB last month!!!

    Data usages are always estimated...I don't believe any carrier post data usage in real time.  I've had my data increased due to a large chunk being unaccounted for at the time of my cycle.  Thankfully when I'm billed for it...it has never pushed me over my limit. 

  • I have an iPad that is now over twelve months old, it doesn't get over used, however in the last few days, it has started to get very hot after only a few minutes use, is this a fixable issue

    I have an iPad that is now over twelve months old, it doesn't get over used, however in the last few days, it has started to get very hot after only a few minutes use, is this a fixable issue

    Is it getting hot only when charging?
    Not normal. Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • Why do my thumbnails not all load on a page like they used to before the last Firefox update?

    I used to love firefox and used it exclusively as my web browser. But ever since the last update to version 3.6.15 the thumbnails on the websites I ALWAYS visit no longer all load!
    Some of the thumbnails load and some don't. If I close firefox and go back to the same page I may get some of the thumbnails to load that didn't before but others that DID load before don't this time.
    This same problem happens at other sites as well.
    So, I gave up using firefox and switched back to IE because it works properly at least though I don't like it as much as firefox.
    I wish they hadn't tried to fix something that wasn't broken because now it is broken!

    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • HT201263 I have had 3 devices ask to restore using iTunes in the last day. Anyone else having this issue?

    I Have had 3 devices ask to restore using I tunes in the last 24 hours. Has anyone else seen this lately?

    They we're all updated to the new iOS recently. Iphone, iPad and Apple TV.
    I Think I know what happened to the first two, but the latter baffles me.

  • HT4623 Using 3gs for the last 2 years and now unable to charge AC Adaptor i.e from plug.  Is there is any solution to this to get charged through AC adapter plug.

    Using 3Gs I phone for the last 2 years.  But recently facing problem i.e unable to recharge battery directly from Plug with AC adapter.  But through computer its charging.  How I can get it recharged through AC Adapter?

    Hi Zac, sorry to hear about your troubles, but that's why us other users are here to try to help in these instances.
    Open Console in Utilities & see if there are any clues or repeating messages when this connection drop happens.

  • I do not get notification on my iPad mini, I use to until the last update

    I do not receive my notifications any more since the last up day on my iPad mini!!

    Hi Paulajohnny,
    If you are no longer receiving notifications you may want to go through the steps for troubleshooting in this article -
    iOS: Understanding notifications
    http://support.apple.com/kb/HT3576
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • HT204291 My AirPlay has suddenly stopped working!! I've been using it for the last 4 months, today I tried to watch a video from my iPad 2 iOS 5 and I have no AirPlay icon. Have also tried it on my iPhone 4 iso5 and also no icon on that. Please help.

    I have been using my appletv for the last 4 months, gone to ue it today and the airplay icon dose not appear on me ipad2 running iso5 where is has been. I have also tried on my iphone 4 running iso 5 and again no joy.
    I have compleated a soft reset on all devices and checked that they are all conected to the same wifi which they are.
    Can you Help

    Thanks Winston, restarting my router worked for me too. Seems that somehow the DCHP (maybe due to the Mountain Lion upgrade?) had assigned the same IP address to both the AppleTV and my iMac. The AppleTV stopped appearing as an AirPlay device for my iPhone and Mac, but still the AppleTV had Internet access.
    Restarting the router reassigned IPs and without fanfare, the AppleTV is now available to AirPlay.

  • Why can I no longer use "favorites" since the last Firefox update????

    I imported all my Favorites from Internet explorer when I first began using Firefox. I click on "favorites" and I get a complete list of all the URLs I use a lot. After the last update, the list no longer appears. I've reloaded the app and no joy. It still works if I quit firefox and use IE.

    Alternately, you can import your IE Favorites into Firefox's Bookmarks system. However, if you plan to add new Favorites in IE, then they would not be the same between browsers, so perhaps that isn't the right approach for you.
    * [[Import Bookmarks from Internet Explorer]]

  • Getting an error that the iMessage cannot be initialized - why now, I have been using it for the last 3 years?

    I cannot send iMessages anymore (have been able to do so for the last 3 years) and when I go Settings / Messages / the iMessage is OFF so when I turn it on it returns an error saying that iMessage cannot be initialized and that I should sign on with my Apple ID, which I did, but it still gives me the error.
    Why is this happening and what can be done?

    It won't be anything to do with Acrobat.
    It may well be something with whatever created the PDF, the settings in whatever made the PDF, etc.
    Does this happen with every PDF that you do not recreate by printing to PDF (I presume from Acrobat)?
    If this is limited to particular PDFs from a particular application and the creator of the PDF is not an Adobe product, what created them?
    If it is just some PDFs, can you upload one to dropbox.com and provide a link to it?
    Mike

  • I have windows 7 and have been using Firefox for the last several months and now I can' open it up for some reason.

    I've been using firefox as my principle browser for quite some time. I normally just click on it once and it opens to the home page with google search in the middle of the page. I downloaded some e-mail attachment about a job and that's when it seemed to act up. I ran a scan on my computer and it says there is no problems but I still can't open up Firefox home page by clicking on the fox/world icon.

    '''Try the Firefox Safe Mode''' to see how it works there. The Safe Mode is a troubleshooting mode, which disables most add-ons.''
    ''(If you're not using it, switch to the Default theme.)''
    * You can open the Firefox 4.0+ Safe Mode by holding the '''Shift''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Don't select anything right now, just use "'Start in Safe Mode"''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shift key) to open it again.''
    '''''If it is good in the Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one.
    Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Have had firefox 3.6 now i trying 4 why does it not wor with profile pictures on facebook i can not see my profile picture or anyone else...it works fine on explorer but i do not wanna use it i have used firefox for the last 6-7 years....

    can not ad on a new profile picture...and i do not see anyone else pictures i can see all on explorer do i have to go back to explorer? i do not want to i used firefox for 6-7 years its the fastest browser...

    Create a new profile exclusively for the 4.0 beta version and create a desktop shortcut with -P "profile" appended to the target to launch that profile.
    * http://kb.mozillazine.org/Testing_pre-release_versions
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox

  • I done on the apple befor 3 year an apple account and i using it for the last one week and i rong and do the a new account and but the same email when creating and the apple verfy it , thats make me cant accses to activate my iphone

    i cant acces to activate my iphone because my email was on my iphone icloud and i dont know how but i delete this account from apple and vrffing it again but now when i wanna to activate my iphone they tell me this email cant verffing the iphone what i can do , please i bought it new please help me help me help me
    <Email Edited By Host>

    Welcome to the Apple Community.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")

Maybe you are looking for

  • Service Tax & VAT or CST in Service Purchase Order

    Dear sappers, We've this requirement. For some service like Genset repair, the Service Vendor is charging Service Tax (10%2%1%) and VAT or CST for the components he is added for the repair service.For VAT or CST he will charge ( Excise + Cess + VAT o

  • When making a PDF in Indesign CS5 crashes?

    Is there any way to reset the PDFs Presets in Indesign. The High Quality PDF (that is a preset already in Indesign) started to crash ages ago. I just made up new PDF Presets. Now it seems that when making PDFS whether Press Quality or the ones I have

  • What do I have to face if  I re-initialize my mac?

    Hi! Unlickily I have to re-initialize my mac, and meanwhile I'm taking the chance to free some Gbs. Now.. (I've already backed-up all my data).. I wonder: A) What kind of complex configurations will I lose? (For example my internet provider..) B) Can

  • Doubt Regarding Error back tracking

    Hello, I am just Executing a sample code in which i want to know that on which line exactly the error is occuring. But it is not working properly... I am executing this on Oracle version 10g & 11g also ... Code :- BEGIN EXECUTE IMMEDIATE 'garbage'; E

  • I need clarification regarding REFERENCE TYPES and CASTING.

    Hello all, I'm taking a course on the fundamental of JAVA. Everything's been going smoothly until I slammed into the the concept of CASTING and REFERENCE TYPES. Flat--out == I DON'T GET IT? I'm having trouble with... CONVERTING REFERENCE TYPES CASTIN