| Reply | « Previous Thread | Next Thread » |
|
Hi,
I encountered problem with memory after sending 2039 queries to SQL DB. It always occurs after 2039. I would like to increase somehow memory in order to avoid the problem. I read some posts about feature in ensymble - don't want to use as i am not working on SIS yet. I saw also MISO package, but I had no success in using it for this purpose. Can anyone give me example how to increase memory with MISO? Which function I should use? EDIT: Error I am getting on "self.dbv.prepare(self.db, unicode(sql))" line. added code which I am using Code:
class Db:
def __init__(self, db_path):
self.dbpath = db_path
self.db = e32db.Dbms()
self.dbv = e32db.Db_view()
self.reset_counters()
self.db_opened = False
def query(self, sql):
self.reset_counters()
if sql.lower().startswith('select'):
self.dbv.prepare(self.db, unicode(sql))
self.dbv.first_line()
self.num_rows = self.dbv.count_line()
else:
self.db.execute(unicode(sql))
mac
Last edited by maclun123 : 2009-01-23 at 18:17.
|
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
Well, the error is occuring probably because the file is too large, exceeding the heap size, which is generally 1 MB.
BR, Rafael. |
|
My file has size around 950 kB, and number is 2039. On the file where size is over 2 Mb is probably around 1400 (cant check exactly).
I have just tested with file with 8 EMPTY tables (file less than 4 kB) and the number is 5104. For 8 tables with ONE entry - around 3500. It seems that problem lies somewhere else. Any ideas? And second question is still unanswered... how to change heap size with miso? mac |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
|
|
I have tried to do it with ensymble, and my problem is still there;/
As I don't see console I don't know what is exact message, but application behaves as it used to from under Python Script Shell. I have set in ensymble heapsize to "--heapsize=4k,4M". but the number of SELECTS didn't increase;/ I don't if I am doing something wrong... Please advice, if you have any ideas. Exact ensymble command: Code:
ensymble.py py2sis --heapsize=4k,4M --uid=0x000b1a5 --appname=PhotoGallery --caps=LocalServices+Location+NetworkServices+PowerMgmt+ProtServ+ReadUserData+SurroundingsDD+SWEvent+UserEnvironment+WriteUserData+ReadDeviceData+TrustedUI+WriteDeviceData --version=1.0.2 --lang=EN --verbose PhotoGallery.py mac |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Update SQL statement doesn't work | asheeshv | General Symbian C++ | 4 | 2008-12-11 06:41 |
| KErrNoMemory on Nokia 5700 - Hipermidia ported App | vitormcruz | Symbian Media (Graphics & Sounds) | 5 | 2007-12-21 03:06 |
| String to Integer conversion in Symbian SQL | sai_irfan | General Symbian C++ | 1 | 2004-09-08 12:02 |
| DBMS - sql function Uppercase/Lowercase ? | aldrin_rave | General Symbian C++ | 2 | 2003-04-29 10:37 |
| Test GPRS modem with Microsoft SQL Server 2000 | chadahamat2704 | Digital Rights Management & Content Downloading | 0 | 2003-03-13 08:36 |