Data Modelling Advice for Blog Tagging system on Google App Engine

前端 未结 4 905
别跟我提以往
别跟我提以往 2020-12-24 00:01

Am wondering if anyone might provide some conceptual advice on an efficient way to build a data model to accomplish the simple system described below. Am somewhat new to th

4条回答
  •  Happy的楠姐
    2020-12-24 00:40

    Thanks to both of you for your suggestions. I've implemented (first iteration) as follows. Not sure if it's the best approach, but it's working.

    Class A = Articles. Has a StringListProperty which can be queried on it's list elements

    Class B = Tags. One entity per tag, also keeps a running count of the total number of articles using each tag.

    Data modifications to A are accompanied by maintenance work on B. Thinking that counts being pre-computed is a good approach in a read-heavy environment.

提交回复
热议问题