Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
Database vs server processing. Which do you prefer?
Post Body

So I get asked a lot when working with data that comes from a database what the best way to process that data is, on the database or on the server.

For example if you want a column to be trimmed you can use TRIM in the SQL or .Trim() in C#. There might be some times you want two columns concatenated. You can have a third column that concatenates them or do it in the application.

What method do you prefer? I usually go with whatever results in the least amount of calls to the database, with the exception of if the database way cause the query to run significantly slower. I also prefer working with dates server side.

Author
Account Strength
80%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
392
Link Karma
346
Comment Karma
46
Profile updated: 5 days ago
Posts updated: 5 days ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
4 years ago