1 (edited by AD1408 2025-05-21 00:57:57)

Topic: Speed

Hi all,


I have build an utility to store (mainly RTF) an info collected from various sources.
As I add more content, app speed slowing noticeable on save and show record.


DB Tables don't have any calculated field. RTF and Images saved in different folders not in DB.


Any suggestion/s for reducing / avoiding speed degradation please.

Adam
God... please help me become the person my dog thinks I am.

Re: Speed

Hi


Yes, it is possible.
It is impossible to give any advice without seeing the problem and unfortunately not all problems can be solved.

Re: Speed

sparrow wrote:

Hi


Yes, it is possible.
It is impossible to give any advice without seeing the problem and unfortunately not all problems can be solved.


Hi Sparrow,
Thank you... I understand and accept what you say.
What I was looking for some suggestions list from seniors for possible causes. I understand, different situations may require different solutions and they may be specific. What I'm looking for is general list of possible causes.


Such as:
1. Calculated fields
.......


Then I check my app and try to solve my issue.

Adam
God... please help me become the person my dog thinks I am.

Re: Speed

Hi Adam, Hi Sparrow,
If you've already eliminated the 'usual suspects' (calculated fields, storing images etc in the DB rather than as link files etc), the other consideration might be your actual data schema.
It's a long shot but perhaps you could look to denormalise a few things (basically reduce the number of related tables, even if it is at the expense of a bit of data redundancy and data integrity).
The problem is that it's pretty hard to test something like that other than 'trial and error' (usually more 'error' on my part sad).
Maybe attach your project and see if anyone can spot something?
Regards,
Derek.

Re: Speed

At one time I encountered the slow work of the component displaying the tree. As a result, I abandoned it in favor of a regular table, plus a design that imitates a tree.

Визуальное программирование: блог и телеграм-канал.

Re: Speed

Specify how exactly the slowdown manifests itself?

1. MVDB does not create any indexes except the primary one. And if you have queries with sorting, they can work slowly. Solution: add the necessary indexing yourself.

2. Sorting when switching columns is performed on the client, and with a large number of records this can be a problem.

Визуальное программирование: блог и телеграм-канал.

Re: Speed

Hi Derek, Hi K245,


Thank you for your kind suggestions...
I'll work on them.

On script side, I used dbupdate, I'm thinking it may also one of the reason for speed degradation  as main slowing occurs on save a record.

Adam
God... please help me become the person my dog thinks I am.

Re: Speed

Hi Adam,
Just a thought - and it may not be relevant to your project - but if you're doing multiple updates (for example, processing through a grid / tree) maybe you could try using 'BeginSQLiteTransaction.....CommitSQLiteTransaction'.
I don't often use it (don't have much need) but when I have, it's made quite a difference.
Derek.

9 (edited by sparrow 2025-07-04 12:37:52)

Re: Speed

Hi Adam,


Do you use TreeViews in your application to display your records?
If yes, what is the number of records in your database and the number of levels to display in the tree?