[?] extend memory for static rules(IP -> DNS -> static)

Hi people!
My question is… Is there a way to extend build in memory by mounting usb and using it like default storage,
maybe i can move that database where rules are stored to mounted device by symlink or something…
16 mb of mem it not enought(
and i have free ram space to upload more rules in it… without having any lags…
in witch file those rules are written and what else it written to it? maybe i can delete some stuff..

**device
-RouterOS v6.42.1
-RouterBOARD 750G r3
-Firmware Type mt7621L

–CPU core count 2
–CPU nominal frequency 880 MHz
–CPU Threads count 4
–Size of RAM 256 MB
–Storage size 16 MB

Thanks!

What comes quickly to my mind would be to put the rules as a text file with a .rsc suffix to the disk, and at each start, /import that text file.

I do suspect that should you move the DB onto memory stick, you will make access to it much slower

It’s the “16MB flash must be enough for everyone” in practice.

I didn’t test it, but I wouldn’t expect much success with importing large list at startup, because it would become part of config and take disk space anyway.

This could work with address list in firewall, because there some entries can be dynamic, so just in RAM. But any entry in “/ip dns static” is regular config.

Correct. I was too fast.

And there is no way to move that “regular config” to external storage? Because when you upload .rsc file on flash usb and make /import of it, it loads those rules to build-in storage, rules size raw text is about 6 mb and when you make /import they expand to 12 mb.. Thanks for the answer!)

But how about the speed? Does the CPU has enough power to keep up with all this rules? I mean, 6MB worth of rules.. there must be some almighty number of inserts. Wouldn’t be the time to get something bigger?

CPU has 4 threads ~800 mhz, rules are around 50k + and board doesn’t hang.. and page response is fast, but you need proper rules config for that, to prevent whaiting timeouts on request…
And about something bigger.. I use it home so i don’t need enterprise lvl mega-multi-core & lots of extendable ram equipment) just experimenting with this board “for science”)) just whant to know why when it “/import” it doubles in size and can i migrate that db(if its db.. ) to external storage..