Set mining is often a way to bleed money for many beginning players. Set mining when 100bb deep is profitable if one or more of the following conditions are met:
1) vil will stack off if you hit and they have a 1-pair type hand
2) you will occassionally make a move with your small pocket pair
There is no point trying to set mine 100bb deep against a good LAG type player if you will fold any time you miss as their range is not strong enough to pay you off often enough if you hit and they will double barrel too often for you to be able to call down your small pair profitably. This is extra bad against strong hand readers who can see if you never semi-bluff your strong draws and so they can put you on exclusively a set when the flop comes 8

7

5

and you raise. Folding AA is trivially easy there against many TAGfish.
Set mining is very profitable against very tight players who will stack off with their overpair - there are a lot more moderate to strong hands in their range that they will be willing to get it in with when you hit. Same goes for loose whales who think top pair is the nuts.