Sanitizing Data - best way ?

Sanitizing Data - best way ?

scanregscanreg Posts: 8Questions: 0Answers: 0
edited October 2012 in General
what's the best way to sanitize the incoming data submitted by users allowed to enter and edit stuff in a table?

what if a user submits like 1000 rows of data? how would this affect memory and performance when sanitizing?

thanks

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    I suspect this might be best asked on SO or similar. The answer to your question will depend heavily upon the server-side environment you are using - obviously the more data you submit, the more resources it will take up. If each row takes only 1K of RAM, you've quickly got 1MB of RAM required just to represent the data. If a row takes up more, it will require more. So I'd say you will need to do some profiling.

    Allan
  • scanregscanreg Posts: 8Questions: 0Answers: 0
    thanks so much

    sorry, i'm not sure what "SO" is

    is that a different forum?

    thanks
  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    edited October 2012
    Sorry, yes. SO = StackOverflow: http://stackoverflow.com/ .

    I'd suggest trying to profile your app - depending on the server-side environment there will be a bunch of tools available to do that, but it will be highly depended upon what you are using.

    Allan
  • scanregscanreg Posts: 8Questions: 0Answers: 0
    ah, okay, will check it out, thanks :)
This discussion has been closed.