Sunday, July 29, 2018

New comment by girzel in "Django EAV 2 – Entity-Attribute-Value Storage for Django"

Come to think of it, several years ago I had to migrate a website from Wordpress (I think it was Wordpress) to Django. The Wordpress database schema was nothing but EAV tables: Every damn thing had all of its attributes listed in a separate table, and object retrieval traversed several tables each time.

I suppose this was necessary or at least useful for a general-use web framework like Wordpress, where no one knows what kinds of attributes various users will want to create, and therefore table _columns_ are stored as table _data_, and no one ever has to do any migration.

But it was dog-slow. The switch to Django halved the number of tables in the site, and the whole thing went about three times as fast (plenty of other reasons for that, though).

Granted, now I have to do Django migrations rather than Wordpress web-console manipulation, but as someone said in a different post, Django migrations aren't that hard these days.

from Hacker News: "WordPress" comments https://ift.tt/2AewAty
via IFTTT

No comments:

Post a Comment

Multimodal embeddings for interleaved text and images

Article URL: https://docs.voyageai.com/docs/multimodal-embeddings Comments URL: https://news.ycombinator.com/item?id=42020484 Points: 3 #...