Welcome, Guest
Username: Password: Remember me
Components and Libraries for Database Development, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

Excessive memory consumption by the TSQLQuery.Last positioning method 1 week 21 hours ago #18940

  • Leonid
  • Leonid's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 45
  • Thank you received: 3
Excessive memory consumption by the TSQLQuery.Last positioning method to the end of a fairly large SQLite table.

A small program for behavior research are attached. Set the number of rows and click Run, a table with
test data is generated(see Source_sql folder) and displayed for clarity. If I now initiate TSQLQuery.Last with DBNavigator, then
if the value is QtyRows=200000 on my computer with 32 gigabytes of memory, it will be exhausted within a few seconds and
the application will crash(see Screenshot_errors folder).

Same behavior for CT8.6, CT8.7 on Debian 12 and on Windows 10 (VirtualBox).

Best regards

Please Log in or Create an account to join the conversation.

Excessive memory consumption by the TSQLQuery.Last positioning method 6 days 20 hours ago #18945

  • Leonid
  • Leonid's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 45
  • Thank you received: 3
Tested TSQLQuery on CT 8.3 with fairly large SQLite table and no problems found

Please Log in or Create an account to join the conversation.

Excessive memory consumption by the TSQLQuery.Last positioning method 6 days 13 hours ago #18946

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1208
  • Thank you received: 188
Please,
give us time to test and report here
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

Excessive memory consumption by the TSQLQuery.Last positioning method 6 days 12 hours ago #18947

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1208
  • Thank you received: 188
From CT 8.3 to CT 8.6 and CT 8.7 sqlite3conn.pp has some changes.

The problem is in your qCreateTable.SQL
CHAR(xx) Don't work and give "memo" field 65.0000 bytes.

The solution is to replace ALL CHAR(XX) with VARCHAR(XX) in your qCreateTable.SQL.

The attach file newsql.zip, has the correct SQL for qCreateTable.SQL, and request only 257 Mbytes from your project.


 
 
PilotLogic Core Programmer
Attachments:
The following user(s) said Thank You: Leonid

Please Log in or Create an account to join the conversation.

Last edit: by Matis A..

Excessive memory consumption by the TSQLQuery.Last positioning method 6 days 8 hours ago #18948

  • Leonid
  • Leonid's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 45
  • Thank you received: 3
Thank you for your support and exit from the impasse!
Code Typhon is a reliable tool! Great job, guys!

Best regards

Please Log in or Create an account to join the conversation.

  • Page:
  • 1