Memory, databases and applications without head

I've been struggling with this problem for some time now so let's go.

As many of you know headless apps allowances of bunch of limit of 3 MB, which is fine, except when using Qt/Cascades objects that don't care much to consumption of memory, two examples are QNetwork and QtSql, who will blow easily your budget of memory in a single operation.

I have simple ' SELECT * from Table' queries that consume more than 6MB, which then effectively disables the component without a head. More precise, I do the query the heap more than it consumes. So I tried libsqlite3, results were similar. It was however the promise to provide a chunck of mmap would or memory of static array for substitute of the bunch, but I can not:

sqlite3_config(SQLITE_CONFIG_HEAP,...)

to work correctly, it returns an error (1) every time.

Unfortunately, I'm at the point where it seems that a component without head who uses SQL can be impossible with the current memory limit. Can anyone offer a solution to the use of SQL with headless while maintaining a service that runs reliably?

-Are there when even to provide a static heap memory for QtSql use?

-Are there a way to limit the memory used by QtSql?

Thank you!

EI

The solution was to restructure my database, as awkward as this has been significantly reduced the memory required for the information necessary to satisfy the query of data in the buffer. In others, rather than have a huge database of the 8 column I broke it into several two databases colum - when the part without head wants just a little information is exactly what he will get so surprise elimination memory usage spikes.

The problem still exists: as the database develops for a query memory requirements. Has no way to control the maximum limits memory use for QtSql complicating an app without elastic, even theoretically impossible to write head.

EI

Tags: BlackBerry Developers

Similar Questions

  • service tag and nfc without head

    Is it possible assigned to an application when a service without head bed tag nfc with specific information?

    Just to add to the response from Marc that I would be interested to know what use cases you have in mind that you think would require you to have access to an NFC tag from an application without a head.

    The nature of the NFC as a short-range radio link forced use cases to those where the end-user must take physical measures to "tap" of the handset in a NFC tag, an NFC reader, or even another NFC device. NFC use cases generally require an element of interaction with an application through the user interface - for example, it would be unacceptable and illegal to allow an application to approve a purchase of credit card contactless without verifiable consent from the user. For this reason, NFC apis and radio, are usually fully accessible only when the application is in the foreground. NFC is also tightly integrated with the framework of the call that allows the OS to launch the appropriate application in the detection of an NFC event plan so the need to use an application without a head is not necessary.

  • Bluetooth and the Application without head

    Hello

    I'm experimenting with Bluetooth Low Energy and I was wondering if it is possible to use Headless app running in the background that use bluetooth.

    I want to do is to have that ongoing service (every 1 or 2 minutes) start a device bluetooth looking for a specific device and do something if my phone is close enough to the target of bluetooth.

    In fact I'm able to start bluetooth search and get the CISO of the device information, but I would put back plan and update my BBM status when I know that for me close to the target

    someone at - it detected something like this?

    Is this possible?

    You must build a long application works without a head for this. Lengthy headless jobs indefinitely apps running in the background but you will need to get permission first. Please start with this form: https://developer.blackberry.com/jam/headless/

    Shadid

  • Sample code for creating our application without head in bb10.3 alarm

    Hello

    Can someone pls I mean is possible to create / to invoke the alarm from a user developed application? I want also the app in the background (like the app without a head) and receive timely notification whenever the alarm sounds. Please provide with some samples it ill be very useful.

    Thanks in advance.

    While working on the code for you example, I discovered that SystemDialog cannot be called from headless, so you do not have to depend on NotificationDialog instead.

    Find attached a sample application work that will play a vibrant sound using MediaPlayer and show a NotificationDialog asking if you want to Snooze (for 5 seconds) or disable the alarm.

    The source code is also available here:

    https://github.com/RodgerLeblanc/HeadlessAlarm

  • format change of date by default in the oracle database and applications at all times.

    Hello

    my current date format is DD-MON-RR and I would change to MM/DD/RRRR permanently. (not at the session in the database level).

    And please suggest me how to change in application level. - is changing the profile ICX option: Date (at the site level) format mask is sufficient?

    Please suggest.

    Thank you

    Ramanantsoa

    PL see the section called "Release Date in shape" in MOS 393861.1 Doc - also see MOS Doc 1520540.1

  • In essbase database and application migration

    Hi gurus

    I got an application and its data bases (v7.x) migrate v11.x. I tried the migration Assistant, his works very well.
    Now, I wanted to know if another method is present also meet my need. In the affirmative, please let me know (I heard there is a manual way to do it).
    I'm new to Essbase. Documentation, would be a great help.

    Thanks in advance
    Vikas

    Alternative method:- Re: Migration of Version 7 to the new environment of Version 11

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Application crash without head

    I have a headless application that consists of a user interface that displays information and a background process that manages the communication networks and raise important data notifications should be retrieved as the user needs to know.

    Looks like what they describe the background process has ended, although I'm waiting to hear if this is indeed the case, and it is not just a bug in my code.

    As I need this service running at all times to manage the network connection is a way to define the process restarts on release without requiring the user interface to get involved or restart the phone?

    You can send a message to hub or NotificationDialog in your app without head destructive code, but chances are that if the app without head has stopped working, it is due to a failure and your Shredder could never be called.

    I know a dev that used a second application without head who would conduct sporadic inspections to see if headless app 1 is running and he would invoke if it no longer exists. This solution is not for everyone, the user will install 2 apps.

    Best solution is to check your code, try to catch the dump if possible user's telephone logs, there is probably an error somewhere that gives the crash without head or your application gets terminated by the operating system when it exceeds the limit of 3 MB heap (check for memory use).

  • When I use pim/message lib in an application without a head at this time I have error

    Hi all

    Today, I try to compile the app for the incoming and outgoing sms watch but fatch some problem.

    It works very well in waterfall app but when I try to put implementing in an application without a head at this time, I get the error.

    I joined code of Cascade and Headless request please check and let me know what I need to change.

    Note :-work fine waterfall Soft code that works when the service error part it does not work.

    Hi Doturner,

    Thanks for the reply.

    I'll try to understand my problem as soon as possible, but some time I need to complete the project on time so when you do that, I have attached code according to the referance.

    Why I joined 2 code?

    -J' developed an application without head and this problem occur after I use the SMS api works pretty well. So I put 2 code code 1 and 2 work without labour code.

    Structure of headless service created by BlackBerry IDE and file name of the service being built. So I m confused and I have no idea is the headless application error or my mistake,

    What ever thank you once again, I'll check and if I need help and then I take the new query

  • We could get an update on the applications without a head for WebWorks?

    The road map of HTML5 is still nothing about apps headless.

    The Live session on headless applications is only "native".

    When we finally will be able to run services usable for basic applications and how will it work?

    We talked about this several times. Unfortunately at this stage we have no concrete plans in place. If you want to run an application without head or service, your best bet is native.

  • Problem with the application without a head

    Hello.

    My application without head works well in the configuration of the device debugging. When I change to device-release service seems to be frozen.

    "The system. STARTED event"does not start and I don't know why.

    I tried to export the application and install tools, but I get the same result.

    Is there a particular reason?

    Thank you

    There is a known, issue please read this...

    http://supportforums.BlackBerry.com/T5/native-development/unable-to-get-headless-apps-working/m-p/26...

  • can we have TimesTen in-memory database as database stadalone

    Hi all


    Please tell me, can we have TimesTen in-memory database as stadalone without oracle database?

    We plan to build IMDB as a stand-alone database. that is to say act as stand-alone database like oracle database,
    I do not use cache groups.


    Could you please tell me is it possible to Setup? If possible what are Adv Adv / say this configuration


    Thank you
    -Ak

    It's quite possible. TimesTen began its life as a standalone IMDB; caching for Oracle is a more recent addition. Licensing Oracle TimesTen in two different ways:

    1 oracle TimesTen In - Memory Database - it will licenses for stand-alone operation including high availability (replication), but do not for any caching features

    2 oracle Timesten, Databas in the cache (Cache IMDB) - this is an Oracle DB EE option (i.e. you need an Oracle DB EA license to buy it) and it includes all the features of stand-alone more caching features.

    There are several deployments of production of TimesTen being used in standalone mode, there is that it is used as a cache.

    Standalone TimesTen provides the data persistence, transactionality, recovery and high availability without the need for any other database. Some advantages and disadvantages of independent use TimesTen are:

    Pros

    -An architecture cleaner and simpler; just a database, no problems of inter synhronisation database

    -Best overall performance; in caching scenarios, Oracle DB can still sometimes be a botlleneck

    -HA implementation is simpler

    -Potentially reduced hardware requirements (based on the application and workload of course)

    -Cost of the potentially reduced license (one product instead of two)

    Disadvantages

    -The total amount of data that can be handled is limited by the available physical memory on the system (because the entire database must always be loaded into memory). For example, if you have a machine with 16 GB of RAM you will likely be limited to perhaps 10-14 GB of data in TimesTen.

    Hope that helps,

    Chris

  • Problem with app without head

    I have an app without very simple head with a spare part which can be summed up like this:

    int main()

    {

    While (true)

    {

    appendToLogFile();

    Sleep (5);

    }

    }

    He manages to write twice in the logfile on Simulator 10.3 after the system starts and then it dies (nothing is printed, process went from "pidin").

    Is there something I need to do to ensure that the system does not not kill us after a few seconds?

    I have the following 2 lines in bar - descriptor.xml:

    _sys_run_headless

    _sys_headless_nostop

    I can zip from the project and set up somewhere if anyone wants. It is based on the project template that Momentics puts apps headless.

    TIA.

    I did some experiments. It seems that headless apps work pretty much as advertised during the development of a device but not very well at all in the development on the Simulator.

    Use a device to develop applications without head, not the Simulator.

    Perhaps future simulators will correct the current problems.

  • I can not print from Firefox, but can all the other browsers and applications (such as MS Word, notepad, etc.). I get a misprint on the print monitor as if it was a problem of queue.

    This is a recent development, but I can not print anything in Firefox. Printing open normally, it's going to the right printer that works... I can print other browsers and applications. It acts like it is in queue and then a printing error occurs and it will not be printed. I closed and reopened Firefox, open in safe mode, cleaned cache/history/cookies and restarted twice. Nothing makes no difference. Also tried printing from the preview before print that had the same result. I can print all other browsers and applications without problem, so it must be within Firefox.

    See this:

    http://KB.mozillazine.org/Problems_printing_web_pages

  • Is possible to clone oracle applications without service interruption data?

    I was looking for a way to clone an EBS production to a pre-production machine, but all that copying is very time consuming.
    Is it possible to copy only the data from the database? Already, 2 machines have the application installed and equal layer.

    Reise wrote:
    Hello

    HP - UX 11
    Oracle 11R2
    EBS 12.1

    All documents that you sponsor speak of cloning the database and applications and not say (as long as I can tell) you can only do the database part and not the application.
    After you have copied the files of data in hot backup mode, I need to run this two-step independent copy only the database or not?
    Perl adcfgclone.pl dbTechStack
    Perl adcfgclone.pl appsTier

    It is in (cloning Oracle Applications V12 with rapid Clone [406982.1 ID]), under the section "Option 6: cloning the database separately.

    Thank you
    Hussein

  • R12 database and JRE issue

    Hello

    I installed EBS R12 12.1.1 on Red Hat Enterprise Linux 5 upgrade 3. After installation I have successfully open the front-end Application and recorded in the application, but due to the JRE unable to launch forms.

    Some how system got hanged and I started with the strength of the system. But after that I restarted I'm not able to start the database and application services.

    In fact, it's the first time I installed R12 on Linux. When I open the terminal and type command $APPL_TOP, its not me APPL_TOP.

    In my view, there could be a problem in the Environment Variables... and I do not know how to set. OR what to do for my database server and the application is online.

    host name - appsdev
    domain name - fusion.com
    SID - SCREWS

    Please help to troubleshoot and resolve this problem.

    Concerning
    Tauseef Ahmad E
    IBIS, IT supports

    Hello

    Stop the application services by using the 'adstpall.sh' script, then start services using 'adstrtal.sh' script and see if you get the same error or not.

    Kind regards
    Hussein

Maybe you are looking for

  • Where can I find the program NLITE?

    Hello everyone Where to find the program nlite (please exact path) And how to use it to install the SATA drivers? Thank you for the help

  • BlackBerry Smartphones where is the character for SMS on Bold 9900 counter?

    I don't seem to be able to find any counter of characters when you type an SMS on the Bold 9900? This seems an obvious feature, so I suppose it must be activated somewhere, but cannot find where. Can anyone help? Thanks Simon

  • How to repair windows media player 12 corrupt dattabase 8 64-bit

    I know that this problem has continued on Windows 7, there is a fix to clear the database and rebuild. But don't know how to do it on windows 8. It's an album art problem, when you try to change you get just ERROR telling you that you cannot change w

  • File txt else reading machine

    Hi guys,.I am facing a problem that you are trying to read a .txt using ODI (11.1.1.7).My architecture has 3 servers. First with ODI installed with FDMEE agent, second with Essbase server and third Oracle databaseI have an interface that loads of .tx

  • Does not not on the website of phone menu drop-down

    I am currently working on a version of phone of my new site, and for some reason any the drop down sub menus do not appear in the navigation bar. Is anyone able to suggest where I go wrong?