Avatar of rwhubbard996
rwhubbard996Flag for United States of America asked on

Find and Replace Slow

I just chanced jobs and my Find and Replace is painfully slow.  When I search the entire current site first it counts the files, looks through 20,000, finds 8,000 then searches them.  I've tried to turn on cloaking to reduce the scope of the search, unsuccessfully.

Locating all the instances of a piece of code or text is necessary as I learn the structure of the site (which appears to be huge maybe a 1,000,000 lines of code).

My last position had a similar size site but the Find & Replace was approximately 8 times faster.

Any tips or suggestions would be appreciated.

Adobe Dreamweaver

Avatar of undefined
Last Comment

8/22/2022 - Mon

I might be something as simple as the speed of the hard drive.  Is the computer a similar spec to your old one?  Also other windows services (such as antivirus software) can have a drastic effect on read speed.
Jason C. Levine

Is caching for the site turned on?

Cache is on, I switched from pc to iMac.

I've cloaked some directories but they still are being examined.

When a Find and Replace is run, it would use my local files for the 'Find' ... correct?

I'm asking because in my view its looking at my 'Remote View'

The local site has 30,000 files in it, pretty sure that's not helping :-)
Your help has saved me hundreds of hours of internet surfing.
Jason C. Levine

Yes, F/R only works locally.

Cache: force it to rebuild...

Incidentally, cloaking will not prevent a F/R operation, only a Check/Change Links or Synchronize operation.

30,000 pages is not helping, no.  Is this on a local or shared network drive.


mybad?  actuly almost 40k files, finds. 6115 of interest.  I performed a force cache then tried another find & replace, counts the 40k files again to find the 6115.

checking links now ...

37,049 total, 6115 html, 36,762 orphaned, 4339 all links, 1077 ok, 1977 broken

what it's saying are orphaned are dynamic, i.e.  $mainsite_link = "$WEBROOT/news/r/?url=" . urlencode("$WEBROOT/");

trying a sync now (very slow).

I though I had restricted the find and replace before, is it possible to restrict the file it looks through?
Jason C. Levine

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

cool, I'll try that, thanks!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.