Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Problem: How to store following Data into a Database in a good, fast way.
  2. Environment: Mysql->InnoDB
  3.  
  4.  
  5. Data:
  6. It´s some kind of layout....
  7.  
  8. Environment -> Content
  9. ->Content
  10. ->Content
  11. ->Content
  12. [...]
  13. -> Content
  14. -> Content
  15. -> Content
  16.  
  17. Content is of various types.....like image, text, video, audio etc.
  18. As Content is some layout they share some properties like Transparency, height, width etc.
  19. But there are differences aswell of course, like Text, imageUrl, Video-Thumbnail etc.
  20.  
  21. So if i pack all possible propertiy fields into a table content, there might be a lot of null fields wich should be avoided afaik.
  22.  
  23. Additionally, each time the layout is saved, the old layout should be stored without loosing performance when selecting the current layout. (For this purpose i thought about Partitioning, with an "active" flasg and a version number on all Tables.)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement