I’ve come up with some ideas for the database design, but I don’t know if any of them would be practical in production:
postsand a separate
post_editstable with a copy of all previous revisions. To get a single post, it’s completely transparent as if the
post_editstable isn’t there. Nothing wrong with this, but it looks amateur to have two nearly identical tables and simply copy stuff between them like this. One benefit is that you could instantly drop
post_editsif you ever needed to do that for some reason.
poststable with everything in a self-referencing chain. To read a post, you’d filter for all posts with a certain slug or something, then order by most recent datetime to find the “real” post. On first thought this seemed kinda clever, but on second thought this looks really messy… how would you get a list of actual posts, wouldn’t there need to be an extra column just to keep track of which are “real”? Pushing the “real” posts to ElasticSearch or keeping track of them in Redis could solve this issue, but it would be complicated to manage and performance wouldn’t be optimal.
post_metaand a separate
post_datatable joined onto it. Whenever a revision is made, a new row is added to
post_data. To get a list of posts: for each row from
post_meta, select the latest referencing row from
post_dataand join it. On the surface it looks more professional than 1., but it’d be at least 2x slower, and you don’t really get any advantages from it.
How does StackExchange implement it, what does their database design look like? If they use diffs instead of storing the whole thing, is there a python implementation to encode/decode between two versions and their diff?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!