Bookmarks db slow with many items

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Bookmarks db slow with many items

Post by KSAKS » 2026-01-21, 09:08

Win7 x64 - fully updated, but it is not OS related problem:
34.0.0 - but this is problem for previous versions as well:
64-bit:

Well as my bookmarks db is growing I'm noticing more and more the browser is not well optimized for very large bookmark databases - I have around 18500 bookmarks atm. Recently for example I needed to sort one bookmarks subfolder with around 2800 items and it took over 15-20 minutes and the RAM usage during the operation was over 17GB just for the browser. The browser has been unresponsible during the whole operation, but the CPU usage has been only around 7%. Also I've noticed, if I have the browser running for longer time, I cannot anymore move the bookmarks between bookmarks subfolders and I need to restart the browser first. I know this is probably no so common to have so many bookmarks, but I need it this way. It is something I can live with, but would be really nice if this is possible to optimize somehow.

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3093
Joined: 2012-08-19, 20:32

Re: Bookmarks db slow with many items

Post by back2themoon » 2026-01-21, 10:36

Hello,

This may be related to my age-old issue with bookmarks losing their custom sorting during an export process. Since you have many bookmarks, please perform this test if possible:

1. Back up your current bookmarks!
Safest methods, either: a) Back up your entire profile, or b) Close PM and copy these two files in a safe folder: places.sqlite and sessionstore.js (you can simply close PM and put them back later to restore).

2. Library/Import and Backup/Backup... and save the resulting .json file. I believe this action falls apart with many bookmarks and/or complex structures.

3. Library/Import and Backup/Restore/Choose File... and restore the exported .json file.

4. Verify if bookmarks structure and sorting is retained e.g. folder positions and bookmark items inside folders.

Thanks

User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Re: Bookmarks db slow with many items

Post by KSAKS » 2026-01-21, 11:18

back2themoon wrote:
2026-01-21, 10:36
Hello,

This may be related to my age-old issue with bookmarks losing their custom sorting during an export process. Since you have many bookmarks, please perform this test if possible:

1. Back up your current bookmarks!
Safest methods, either: a) Back up your entire profile, or b) Close PM and copy these two files in a safe folder: places.sqlite and sessionstore.js (you can simply close PM and put them back later to restore).

2. Library/Import and Backup/Backup... and save the resulting .json file. I believe this action falls apart with many bookmarks and/or complex structures.

3. Library/Import and Backup/Restore/Choose File... and restore the exported .json file.

4. Verify if bookmarks structure and sorting is retained e.g. folder positions and bookmark items inside folders.

Thanks
Hello, I can reply to this test even without doing it again. This is process I did many times in the past and last time I did it was yesterday when I was cleaning my Palemoon profile and setting up everything from scratch after maybe 10-15 years. Maybe I should also mention I'm using portable Palemoon version. I didn't notice problems with exporting so many bookmarks to the json file and importing it back. The bookmarks structure is kept for me. Might be something specific to your sorting or some characters. Only thing not kept is the websites icons. That is restored only after I visit the bookmark again in the browser. The resulting json file after the export is 10.2 MB big and that is imho the main problem. It is probably something which comes from Mozilla code, because I remember when I needed to work with very big json files inside TOR Browser, there was as well huge memory usage and slowdown of everything.

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3093
Joined: 2012-08-19, 20:32

Re: Bookmarks db slow with many items

Post by back2themoon » 2026-01-21, 17:07

Thanks for the report. I can't pinpoint this sorting issue.

With ~2800 bookmarks here, performance is ok.

Goodydino
Keeps coming back
Keeps coming back
Posts: 941
Joined: 2017-10-10, 21:20

Re: Bookmarks db slow with many items

Post by Goodydino » 2026-01-21, 19:11

KSAKS wrote:
2026-01-21, 09:08
Win7 x64 - fully updated, but it is not OS related problem:
34.0.0 - but this is problem for previous versions as well:
64-bit:

Well as my bookmarks db is growing I'm noticing more and more the browser is not well optimized for very large bookmark databases - I have around 18500 bookmarks atm. Recently for example I needed to sort one bookmarks subfolder with around 2800 items and it took over 15-20 minutes and the RAM usage during the operation was over 17GB just for the browser. The browser has been unresponsible during the whole operation, but the CPU usage has been only around 7%. Also I've noticed, if I have the browser running for longer time, I cannot anymore move the bookmarks between bookmarks subfolders and I need to restart the browser first. I know this is probably no so common to have so many bookmarks, but I need it this way. It is something I can live with, but would be really nice if this is possible to optimize somehow.
Are you sure all those bookmarks are valid? Do you check them with an extension that can do that? I find that when I check my bookmarks every few weeks or so, that some sites have disappeared. I delete those, since dead bookmarks are useless. I have hundreds of bookmarks, not thousands, probably for that reason.

User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Re: Bookmarks db slow with many items

Post by KSAKS » 2026-01-21, 19:42

Goodydino wrote:
2026-01-21, 19:11

Are you sure all those bookmarks are valid? Do you check them with an extension that can do that? I find that when I check my bookmarks every few weeks or so, that some sites have disappeared. I delete those, since dead bookmarks are useless. I have hundreds of bookmarks, not thousands, probably for that reason.
No, I'm not checking them with such extension and I'm 100% sure some of the bookmarks are dead of course, but such bookmarks are even more valuable for me. Because that is stuff I cannot find anymore with regular search engines, but in most of the cases I can still access them with web.archive.org or archive.ph if I know the original url. There are tons of interesting and important articles I collected during last ~20 years I can still access this way in few moments directly from my browser.

User avatar
Gemmaugr
Lunatic
Lunatic
Posts: 420
Joined: 2025-02-03, 07:55

Re: Bookmarks db slow with many items

Post by Gemmaugr » 2026-01-22, 06:39

I have 4000 bookmarks and experience no such issue, though it's probably because they're all in folders and sub-folders (and sub-sub-folders etc).
When you say that you "needed to sort" them, do you use the menu bar dropdown or go into Organize Bookmarks (ctrl+shift+b), or something else/addon?

I completely agree that dead bookmarks are even more important than live ones, since you can indeed use them to find the content elsewhere instead.

User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Re: Bookmarks db slow with many items

Post by KSAKS » 2026-01-22, 11:41

Gemmaugr wrote:
2026-01-22, 06:39
I have 4000 bookmarks and experience no such issue, though it's probably because they're all in folders and sub-folders (and sub-sub-folders etc).
When you say that you "needed to sort" them, do you use the menu bar dropdown or go into Organize Bookmarks (ctrl+shift+b), or something else/addon?

I completely agree that dead bookmarks are even more important than live ones, since you can indeed use them to find the content elsewhere instead.
Both menu bar dropdown and go into Organize Bookmarks (ctrl+shift+b). I'm not using any addon for the sort.

User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Re: Bookmarks db slow with many items

Post by KSAKS » 2026-01-22, 15:54

Ok guys looks like I have found the core of this problem. I did mistake in my testing environment (I have here multiple PM portables for tests while I'm setting up everything from scratch) and forgot there active one extension used for another tests and that is the main cause of those slowdowns. Without it is just "normally" little bit slower (maybe 30-40 seconds freeze while importing the 10.2MB json file and few seconds freeze on actions, so still some optimizations would be nice) but not extreme slowdown like I'm describing above.

So the core of the extreme slowdown is this extension https://addons.palemoon.org/addon/update-alert/. Looks like it is not properly handling only the items inside "Update Scanner's Pages", but somehow processing all bookmarks if they are resorted.

User avatar
Gemmaugr
Lunatic
Lunatic
Posts: 420
Joined: 2025-02-03, 07:55

Re: Bookmarks db slow with many items

Post by Gemmaugr » 2026-01-22, 16:35

KSAKS wrote:
2026-01-22, 15:54
Ok guys looks like I have found the core of this problem. I did mistake in my testing environment (I have here multiple PM portables for tests while I'm setting up everything from scratch) and forgot there active one extension used for another tests and that is the main cause of those slowdowns. Without it is just "normally" little bit slower (maybe 30-40 seconds freeze while importing the 10.2MB json file and few seconds freeze on actions, so still some optimizations would be nice) but not extreme slowdown like I'm describing above.

So the core of the extreme slowdown is this extension https://addons.palemoon.org/addon/update-alert/. Looks like it is not properly handling only the items inside "Update Scanner's Pages", but somehow processing all bookmarks if they are resorted.
Thanks for reporting back. I use..well, have, that addons myself. Though I only really use it for one site. Time to remove it. Thanks again!

User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Re: Bookmarks db slow with many items

Post by KSAKS » 2026-01-22, 17:14

Gemmaugr wrote:
2026-01-22, 16:35
Thanks for reporting back. I use..well, have, that addons myself. Though I only really use it for one site. Time to remove it. Thanks again!
No problem. I have 9 items inside it atm. So I guess it is not about how many items you have there, but about the amount of total bookmarks in the browser and if it is not extreme like in my case, you will not notice it. Unfortunately I cannot remove this addon. It is essential for me to check updates on few pages and I don't know about alternative. I've tried also with original Update Scanner addon and it is the same (maybe even worse). So that seems to be really old bug.

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3093
Joined: 2012-08-19, 20:32

Re: Bookmarks db slow with many items

Post by back2themoon » 2026-01-26, 18:08

Goodydino wrote:
2026-01-21, 19:11
Are you sure all those bookmarks are valid? Do you check them with an extension that can do that?
Any suggestions for such extensions?

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Bookmarks db slow with many items

Post by Mæstro » 2026-01-26, 20:08

Gemmaugr wrote:
2026-01-22, 06:39
I completely agree that dead bookmarks are even more important than live ones, since you can indeed use them to find the content elsewhere instead.
When this happens, I update the rotten link instead to point to an archived version. About two out of every five bookmarks I keep is like this.
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

Goodydino
Keeps coming back
Keeps coming back
Posts: 941
Joined: 2017-10-10, 21:20

Re: Bookmarks db slow with many items

Post by Goodydino » 2026-01-26, 20:28

back2themoon wrote:
2026-01-26, 18:08
Goodydino wrote:
2026-01-21, 19:11
Are you sure all those bookmarks are valid? Do you check them with an extension that can do that?
Any suggestions for such extensions?
I like CheckPlaces. You can get it from this site: http://daniel-lange.com/archives/71-Syn ... d-ons.html. There is also Bookmarks Checker which you can get from the Classic Add-ons Archive. That one does not have quite as many options however.

User avatar
Gemmaugr
Lunatic
Lunatic
Posts: 420
Joined: 2025-02-03, 07:55

Re: Bookmarks db slow with many items

Post by Gemmaugr » 2026-01-26, 21:30

Mæstro wrote:
2026-01-26, 20:08
Gemmaugr wrote:
2026-01-22, 06:39
I completely agree that dead bookmarks are even more important than live ones, since you can indeed use them to find the content elsewhere instead.
When this happens, I update the rotten link instead to point to an archived version. About two out of every five bookmarks I keep is like this.
That isn't always possible sadly. Wayback Machine has started to purge some sites, and Archive.ph requires google captcha if it even has the page in question.
I usually use the title/topic of the dead bookmark to find another instance that talks or shows the content in question instead.

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Bookmarks db slow with many items

Post by Mæstro » 2026-01-26, 21:39

Gemmaugr wrote:
2026-01-26, 21:30
Wayback Machine has started to purge some sites, and Archive.ph requires google captcha if it even has the page in question.
Archive.ph’s problems are familiar to me. Its Cloudflaring has led me to avoid it. But what has been happening to the Archive? I have never personally observed sites being removed from it, as opposed to having been deliberately excluded from the start. More information here would help.
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

User avatar
Gemmaugr
Lunatic
Lunatic
Posts: 420
Joined: 2025-02-03, 07:55

Re: Bookmarks db slow with many items

Post by Gemmaugr » 2026-01-26, 22:07

Mæstro wrote:
2026-01-26, 21:39
Gemmaugr wrote:
2026-01-26, 21:30
Wayback Machine has started to purge some sites, and Archive.ph requires google captcha if it even has the page in question.
Archive.ph’s problems are familiar to me. Its Cloudflaring has led me to avoid it. But what has been happening to the Archive? I have never personally observed sites being removed from it, as opposed to having been deliberately excluded from the start. More information here would help.
https://web.archive.org/web/20260000000 ... 25-edition

https://archive.org/post/778/exclusions ... ck-machine

https://wiki.archiveteam.org/index.php/ ... ck_Machine

User avatar
Mæstro
Keeps coming back
Keeps coming back
Posts: 911
Joined: 2019-08-13, 00:30
Location: Casumia

Re: Bookmarks db slow with many items

Post by Mæstro » 2026-01-26, 22:17

Ah, these are just the Archive’s policies which I have always known about, and which have remained unchanged. I misinterpreted ‘purge’ to suggest the Archive has lately deleted many formerly safe sites in a concentrated push, which would be quite alarming. The situation is not so scary as it seemed.
Life is a fever dream Mæstro would enjoy.
How is your computer at 96°C and not on fire?
All posts 100% organic. Ash is the best letter.
What is being nice online?
Debian 10 ELTS / Official PM build

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3093
Joined: 2012-08-19, 20:32

Re: Bookmarks db slow with many items

Post by back2themoon » 2026-01-27, 01:30

Thanks for the info, Goodydino.

As for dead bookmarks, I'd definitely prefer downloading/saving those pages offline, rather than relying on Wayback Machine.

User avatar
KSAKS
Apollo supporter
Apollo supporter
Posts: 42
Joined: 2019-02-21, 09:44

Re: Bookmarks db slow with many items

Post by KSAKS » 2026-01-27, 08:49

Gemmaugr wrote:
2026-01-26, 21:30
That isn't always possible sadly. Wayback Machine has started to purge some sites, and Archive.ph requires google captcha if it even has the page in question.
I usually use the title/topic of the dead bookmark to find another instance that talks or shows the content in question instead.
I didn't notice purging of sites from archive.org and also I don't have problem with google captchas on archive.ph, but this might be different for various websites and various user locations.
back2themoon wrote:
2026-01-27, 01:30
Thanks for the info, Goodydino.

As for dead bookmarks, I'd definitely prefer downloading/saving those pages offline, rather than relying on Wayback Machine.
Yes, I'm doing sometimes as well local copies, but the additional value of archive.ph or archive.org copies is you can send such link to anybody and it is proof such url and content really existed in the past. Locally archived copy is not a proof, because anybody can fake it easily.