Juggling Rekordbox databases is possible, tho you need to know exactly what you are doing.
A possible solution for your situation is creating 2 Rekordbox collections. One for the tracks on the external, and another one for the tracks on your internal drive.
both have the database in the default location:
~/Library/Pioneer/
this is the user level Library folder, not the one at the root of your drive.
Now here comes the trick
- create a Rekordbox collection with tracks from your external drive.
- quit Rekordbox
- rename the folder
~/Library/Pioneer/
into
~/Library/Pioneer External/ - start up Rekordbox (it will create an empty collection)
- fill this with the tracks from your internal drive
- quit Rekordbox
- rename the folder
~/Library/Pioneer/
into
~/Library/Pioneer Internal/
Now if you want to use the external collection
- quit Rekordbox
- rename the folder
~/Library/Pioneer External/
back to
~/Library/Pioneer/
ditto if you want to use tracks from the internal drive, but first make sure you rename the current /Pioneer/ folder.
You could even create a simple Apple Script that will quit RB, activate the desired collection and start RB.
This has "user error" written all over it, and those 2 collections are 100% separated, meaning DJ metadata you change in one collection would not show up in the other (think about cues/grid/loops/playcount/starratings etc)
A different approach using the same method is creating a CDJ USB with the tracks you want from the external drive, switch database and then import the contents of that CDJ USB in the (empty) Rekordbox collection.
This is more work, the import function of Rekordbox has a known bug where cues/loops are not always imported the first run (requires a 2nd import of the same usb). But the tracks of the USB will be copied to the internal drive (it's an import option) so creating your "internal" collection.
This method maintains all DJ metadata from the "external collection".
And you can always look how I manage my workflow. All my tracks are on a AppleShareFileserver (=external drive)
My Workflow Summer 2020, using the new iTunes Collection Tool. Live recording unedited
Another related tutorial:
Why cues, loops etc can disappear from your DJ software aka filepaths matter