Open bozdoz opened 1 year ago
I don’t understand how this makes the migration any different, let alone more complicated. Or perhaps I’m not understanding what you’re migrating. Either way, it’s your shout.
Just complication of constantly checking if a db value exists as opposed to checking an auto-loaded value that we expect to be there. It's less intuitive in my mind. I like the idea if there was a good clear way to do it.
From an email:
Instead of storing the latitude and longitude of all locations in the database, as individual entries in the database,
I would like better if the lat lng were not to be saved in the database and if they could instead to be calculated on the runtime, in the client side, when loading the page.
I sent you a snippet that demonstrates this possibility.
I have hundreds of locations. So there are huge entries saved in the database, more than WordPress and plugins combined.
This could be a new feature, a new attribute which you toggle on or off while generating the shortcode. " to retrieve the data from database: toggle on or off".
If the short code is ON by default, it maintains current functionality.
If the value is OFF, it is going to calculate the lat and long from "London" in real time, without storing in database while doing so.