View Issue Details

IDProjectCategoryView StatusLast Update
0000451Database Workbench v6SQL & Parameter Insightpublic2024-12-16 13:18
ReporterDoychin Bondzhev Assigned ToMartijn Tonies  
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Fixed in Version6.6.0 
Summary0000451: Option to enable/disable sql syntaxis hylighting in Script Editor and max file size to automatically disable
DescriptionThere should be an option to generally enable/disable syntax highlighting.

Also it could be very handy to have an option to specify max file size for which by default highlighting is enabled. If SQL file is larger then this size highlighting to disable automatically. From there you can enable it for this file specifically.

This I suspect will make it much easier to work with large SQL files like MySql backups.

Good place to put these options as check box for example on the SQL Editor tool bar. Also if these options are going to increase maybe a drop down menu similar to one we have in Single SQL toolbar.
TagsNo tags attached.

Activities

Martijn Tonies

2012-10-30 10:53

administrator   ~0000143

Hmm, it seems slowness is more an issue of very very wide lines than of the number of lines.

Can you confirm?

Doychin Bondzhev

2012-11-06 11:20

reporter   ~0000149

I just suspected the problem comes from sql code analysis done by sql editor to properly highlight it.

The real problem could be in the fact that SQL editor needs lots of time to scroll each line but again this could be caused by the code analysis.

Just try to load big SQL file with lots of inserts and you will notice that when you try to scroll it does not really scroll but instead just moves the scroll bar position but screen is not repainted.

My real problem comes more from the fact that it takes ages to run script that is more then just a few hundred lines long. For scripts that represent database backups(MySQL) it could take ages to run and in most of the case it freezes at some point or is getting really slow.

In this case the real problem could be in the fact that you log each statement in the execution log and these controls are not very fast when they contain lots of lines ;-(

So if you can check where the actual bottleneck is this could pinpoint the real source of the problem which can be something else not the syntax highlight.

Martijn Tonies

2012-11-06 11:25

administrator   ~0000150

You can easily try yourself if it's the highlighting - open an editor without a connection: no highlighting.

With regard to script running, the output has a maximum number of lines, see Preferences, Editors, SQL/Script Editor.

Doychin Bondzhev

2012-11-06 11:27

reporter   ~0000151

OK but it is not only the output ;-)

It is the SQL editor him self that eats lots of CPU while executing SQL lines.

I think better is to look at issue 450. This will be much better to have and will avoid all the problems when running large SQL scripts from SQL Editor.

Doychin Bondzhev

2012-11-06 11:28

reporter   ~0000152

Actually Scroll is really really fast when I load my test file in SQL Editor ;-) without highlighting.

Issue History

Date Modified Username Field Change
2012-10-01 08:57 Doychin Bondzhev New Issue
2012-10-01 10:35 Martijn Tonies Status new => acknowledged
2012-10-30 09:10 Martijn Tonies Assigned To => Martijn Tonies
2012-10-30 09:10 Martijn Tonies Status acknowledged => assigned
2012-10-30 09:10 Martijn Tonies Summary Option to enable/disable sql syntaxis hylighting in SQL Editor => Option to enable/disable sql syntaxis hylighting in SQL Editor and max file size to automatically disable
2012-10-30 10:53 Martijn Tonies Note Added: 0000143
2012-10-30 10:53 Martijn Tonies Status assigned => feedback
2012-11-06 11:20 Doychin Bondzhev Note Added: 0000149
2012-11-06 11:20 Doychin Bondzhev Status feedback => assigned
2012-11-06 11:25 Martijn Tonies Note Added: 0000150
2012-11-06 11:25 Martijn Tonies Status assigned => feedback
2012-11-06 11:27 Doychin Bondzhev Note Added: 0000151
2012-11-06 11:27 Doychin Bondzhev Status feedback => assigned
2012-11-06 11:28 Doychin Bondzhev Note Added: 0000152
2013-09-11 12:03 Martijn Tonies Project Database Workbench v4 => Database Workbench v5
2022-01-12 13:18 Martijn Tonies Project Database Workbench v5 => Database Workbench v6
2022-01-26 10:47 Martijn Tonies Status assigned => acknowledged
2024-11-25 13:17 Martijn Tonies Status acknowledged => resolved
2024-11-25 13:17 Martijn Tonies Resolution open => fixed
2024-11-25 13:17 Martijn Tonies Fixed in Version => 6.6.0
2024-11-25 13:17 Martijn Tonies Summary Option to enable/disable sql syntaxis hylighting in SQL Editor and max file size to automatically disable => Option to enable/disable sql syntaxis hylighting in Script Editor and max file size to automatically disable
2024-12-16 13:18 Martijn Tonies Status resolved => closed