• Resolved ben303

    (@ben303)


    version 1.4 works better than version 2.0

    I am getting timeouts with 2.0

    why is that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Godley

    (@johnny5)

    Can you provide more details? What are your search settings?

    Thread Starter ben303

    (@ben303)

    AWS server, Bitnami ubuntu stack w NGINX, MySQL 8

    2.0 is very, very, very slow compared to 1.4. In fact its not really usable at all.

    I have over 20 000 posts.

    Plugin Author John Godley

    (@johnny5)

    What are your search settings?

    The old version will certainly cause timeouts and memory issues, and requires people to edit files. The new version is much more scaleable and will only improve over time.

    Thread Starter ben303

    (@ben303)

    just tested it again….the progress bar also giving me results of 456 % – very slowly

    going back to old version

    Plugin Author John Godley

    (@johnny5)

    That’s fine, but for the third time, can you provide your search settings?

    Thread Starter ben303

    (@ben303)

    ok, all tests were

    first time:

    version 2.0
    regex: yes
    case insensitive: yes
    search: https:\/\/jooble\.org\/desc\/(.*?)\?.*
    replace: https://jooble.org/desc/\1?p=1
    target: post meta value

    version 1.4

    the same except search is surrounded by “@”, so
    @https:\/\/jooble\.org\/desc\/(.*?)\?.*@

    *to note – the speed difference is MAJOR.

    on version 1.4, it is lightening fast
    on version 2.0.. like a snail

    I then tested again, the same results…then a 3rd time without regex and with on the post title – and same difference in speed

    third time:

    version 2.0

    regex: no
    case insensitive: yes
    search: `& amp ;’
    replace: &
    target: post title

    (in the ‘search’ I have put a spaces just here – there is a bug in this wordpress.org comment area where the html ampersand, even if enclosed with the ‘code’ option, does not come out)

    version 1.4

    same as above but with search surrounded with “@”

    I noticed in version 2.0 you mention PHP regex. Does this mean version 2.0 uses PHP to process and version 1.4 uses regex native to mySQL?

    that could explain massive speed difference.

    in all tests – I backed up database with mysqldump beforehand, and imported again before next test. using mySQL 8

    I could also make a video showing the drastic difference in speed if you like, just didnt get around to it yet

    • This reply was modified 6 years ago by ben303.
    • This reply was modified 6 years ago by ben303.
    • This reply was modified 6 years ago by ben303.
    Plugin Author John Godley

    (@johnny5)

    No, the old version does not use MySQL regex.

    The old version loads all data into memory and is a CPU hog. It is not scaleable, frequently crashes servers, and requires people to manually modify files in order to work around limitations.

    The new version does not load all data into memory, is scaleable, and does not require manual file modifications.

    It intentionally slows things down to take the safest route. The speed will be increased over the next few versions, as the code settles down.

    You can try this beta for some speed improvements:

    https://github.com/johngodley/search-regex/releases/tag/2.1

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘version 1.4 works better than version 2.0’ is closed to new replies.