Storing JSON in an msSQL database?

前端 未结 7 768
难免孤独
难免孤独 2020-12-28 15:38

I\'m developing a form generator, and wondering if it would be bad mojo to store JSON in an SQL database?

I want to keep my database & tables simple, so I was go

7条回答
  •  Happy的楠姐
    2020-12-28 16:13

    It will be slower than having the form defined in code, but one extra query shouldn't cause you much harm. (Just don't let 1 extra query become 10 extra queries!)

    Edit: If you are selecting the row by formTitle instead of pKey (I would, because then your code will be more readable), put an index on formTitle

提交回复
热议问题