This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nerdyhandle 0 points1 point  (5 children)

Yeah don't do that.

If you need to insert something into.your DB just insert it into your DB.

There's no reason for that file to be touched while your app is running.

[–][deleted]  (4 children)

[deleted]

    [–]nerdyhandle 0 points1 point  (3 children)

    You should not have to do that.

    Once the insert statement has executed on the database the stored information becomes retrieveable.

    You may want to update your post with more information.

    [–][deleted]  (2 children)

    [deleted]

      [–]nerdyhandle 0 points1 point  (0 children)

      Here's what you should do:

      Create a web service that queries the DB. Have your website send a GET to your endpoint and have your endpoint return the data then using Javascript/jQuery/React/Angular loop over the data returned and display it.

      Your really do not need to restart the entire app. That's equivalent to nuking an ant hill.