login community faq

Hi guys,
I'm writing the server for a Javascript app that has a syncing feature. Files and directories being created and modified by the client need to be synced to the server (the same changes made on the client need to be made on the server, including deletes).

Since every file is on the server, I'm debating the need for a database entry corresponding to each file. The following information needs to be kept on each file/directory for every user:

  1. Whether it was deleted or not (since deletes need to be synced to other clients)
  2. The timestamp of when every file was last modified (so I know whether the file needs updating by the client or not).
I could keep both of those pieces of information in files (e.g. .deleted file and .modified file in every user's directory containing file paths + timestamps in the latter) or in the database.

However, I also have to fit under my 80mb memory constraint. Between file storage and database storage, which would be more memory-efficient for this purpose?

asked May 30 '11 at 14:08

jordonwii's gravatar image

jordonwii
12

Be the first one to answer this question!
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×643
×229
×57

Asked: May 30 '11 at 14:08

Seen: 812 times

Last updated: May 30 '11 at 14:08

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited