Database size has nothing to do with the amount of RAM your computer has, nor how much RAM weewx needs (which is not much).
If you upgraded to v4 and used the extended schema, yes it added a lot of typically unused fields and tables, but it didn't increase the size tremendously. I did the measurement before and after during the development cycle and it was visible but not anything too significant.
My database going back 15 years (wow) now is 352 MB in size for my VP2 on a 5-minute interval period. Tiny these days.