There is a heap of misinformation out there and opinions on compression.
This is reasonable in terms of how to compress the signal in a guitar effectively.
https://www.musicianonamission.com/bass-compression-trick/
All this stuff about must use it as a limiter is generally bunkum - even as a ‘limiter’ it’s still compression, and if it’s being used to stop you ragging and damaging your speaker cones, you must be playing at an incredible volume for this to happen which is beyond what your set up can handle - this will need to be addressed first, before compression.
After that and after getting the basics the best way to get compression learnt is to step away from the bass and learn to mix a whole band.
Now within all this are key questions
How much do you like to tinker?
Do you want to control all parameters?
Do you like visual metering?
What is your budget, new or second hand?
How much real estate do you want to give up?
This will auto select a range of compressor for the one knob TC Spectracomp where someone has installed the ‘best for most’ parameters, through to an Empress or whatever.
You will otherwise get a scattergun of use this and use that one.
Filter it out then it’s game on