Disable Automatic Query of Open Session Tabs on Startup?

Discussion related to "Everything" 1.5.
Post Reply
SolarTheory
Posts: 13
Joined: Sun Aug 14, 2022 9:51 pm

Disable Automatic Query of Open Session Tabs on Startup?

Post by SolarTheory »

Is there a setting to disable automatic searching/querying of tabs on Everything startup? I am currently in a situation where my startup session has grown large (3 windows with many many tabs). I haven't gotten around to clearing them, and since there is no session management feature, I am forced to startup with this session since I do not want to lose the queries. But the startup impact is massive. It takes upwards of 6 to 8 minutes before Everything becomes available to use. Given the adjustments I have made to Everything priority/thread settings (to lower system impact), as well as the number of volumes and files being indexed on my system (I have a lot), together will the accumulated session tabs, I am actually not surprised that it is taking that long when many queries are being performed simultaneously. But if I startup with no session, I am up and running in 30 seconds.

The issue is that Everything forcefully queries every single tab at startup, even though I don't need those results immediately. Further, I have "Search as you Type" disabled, so I prefer to control when a query is triggered.

I have been unable to find any setting to control this startup behavior. Let me know if there is one. If not, please consider adding.

Many thanks!
void
Developer
Posts: 19851
Joined: Fri Oct 16, 2009 11:31 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by void »

The next update will have an experimental session_store_restore_on_demand advanced setting.

When enabled, all tabs will be restored, but will not be loaded until you click on them.
Thank you for the feedback and suggestion.



I will consider another option to not apply the search until ENTER is pressed from the search box (when search as your type is off)
therube
Posts: 5716
Joined: Thu Sep 03, 2009 6:48 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by therube »

I'll note that in Firefox, the focused tab, in each window, is loaded fully.
"Background" tabs are not (fully) loaded until a particular tab is actually click on.


(IMO, not having all tabs automatically load will be a benefit for most.)
(SeaMonkey has; restore all immediately, # tabs at a time, or only when I need them.)
void
Developer
Posts: 19851
Joined: Fri Oct 16, 2009 11:31 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by void »

Everything 1.5 is now beta.

Everything 1.5.0.1410b adds a session_store_restore_on_demand advanced settings.

To enable restore on demand:
  • In Everything 1.5, from the Tools menu, click Options.
  • Click the Advanced tab on the left.
  • To the right of Show settings containing, search for:
    session
  • Select: session_store_restore_on_demand
  • Set the value to: true
  • Click OK.
When enabled, Everything will not load tabs until they are clicked on.

If this is useful, please let me know and I will look into enabling it by default.
therube
Posts: 5716
Joined: Thu Sep 03, 2009 6:48 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by therube »

session_store_restore_on_demand, helps :-).
Much quicker startup time, less CPU usage.

.
Everything - session_store_restore_on_demand.png
Everything - session_store_restore_on_demand.png (71.9 KiB) Viewed 316 times
SolarTheory
Posts: 13
Joined: Sun Aug 14, 2022 9:51 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by SolarTheory »

I haven't had a chance to test it yet. How persistent is session_store_restore_on_demand? If I do not restore my session across multiple Everything starts, will it remain available to restore indefinitely, or does the session need to be restored prior to exiting Everything for it to stay alive?
void
Developer
Posts: 19851
Joined: Fri Oct 16, 2009 11:31 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by void »

How persistent is session_store_restore_on_demand?
This setting value persists between multiple restarts.

But I think your asking How persistent is the session store?
To answer that, the session only persists between a single restart of Everything.
Once you restart Everything a new session store is created.

You'll need to restore your session each time your restart Everything to 'keep it alive'.



A small detail: a new session store on disk is only created if you 'dirty' a session (eg: change the search)
So if you restart Everything, don't change the search, exit Everything, a new session store is not created.
You'll still have your old session store. so sessions can persist between multiple restarts as long as you don't change the search.
kgn69n
Posts: 4
Joined: Sun Dec 01, 2024 6:10 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by kgn69n »

Are you also considering letting users save sessions?
void
Developer
Posts: 19851
Joined: Fri Oct 16, 2009 11:31 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by void »

To save a session, simply copy your Session.json file.

To restore a saved session:
In Everything, type in the following search and press ENTER:
/restore-session

Select your Session.json and click Open.

/restore-session
-restore-session
kgn69n
Posts: 4
Joined: Sun Dec 01, 2024 6:10 pm

Re: Disable Automatic Query of Open Session Tabs on Startup?

Post by kgn69n »

void wrote: Sun May 17, 2026 12:10 am To save a session, simply copy your Session.json file.

To restore a saved session:
In Everything, type in the following search and press ENTER:
/restore-session

Select your Session.json and click Open.

/restore-session
-restore-session
I didn't know about about this, just test this method and it worked.
Thank you
Post Reply