Skip to main content

​THE INTERVIEWEE WHO HATED ME​

6 years ago a guy looked at me face to face, and boldly told me; "I don't like you!" I immediately fired a response, I asked him that day; "Thank you for the honest feedback, but those that you like, how has it made their life better? How does your liking people pay their bills or take a bank loan? My brother keep your like, I need God's like And that's what guarantees my future. Today I joined a CEO friend of mine in an interview Panel to recruit some new staff, it was a long session, as we returned from a coffee break to continue the hectic interview session, here was this same guy walked in with his grey jacket and CV coming for the interview. Our eyes kissed by fluke, we immediately recognised each other; "the world is indeed spherical", I soliloquized. He felt very uncomfortable through out the interview, one could clearly see the volcanic eruption ongoing in his whole nervous system, he even mistook his date of birth for his last date of empl...

Database design best practices

  1. Use well defined and consistent names for tables and columns (e.g. School, StudentCourse, CourseID ...).
  2. Use singular for table names (i.e. use StudentCourse instead of StudentCourses). Table represents a collection of entities, there is no need for plural names.
  3. Don’t use spaces for table names. Otherwise you will have to use ‘{‘, ‘[‘, ‘“’ etc. characters to define tables (i.e. for accesing table Student Course you'll write “Student Course”. StudentCourse is much better).
  4. Don’t use unnecessary prefixes or suffixes for table names (i.e. use School instead of TblSchool, SchoolTable etc.).
  5. Keep passwords as encrypted for security. Decrypt them in application when required.
  6. Use integer id fields for all tables. If id is not required for the time being, it may be required in the future (for association tables, indexing ...).
  7. Choose columns with the integer data type (or its variants) for indexing. varchar column indexing will cause performance problems.
  8. Use bit fields for boolean values. Using integer or varchar is unnecessarily storage consuming. Also start those column names with “Is”.
  9. Provide authentication for database access. Don’t give admin role to each user.
  10. Avoid “select *” queries until it is really needed. Use "select [required_columns_list]" for better performance.
  11. Use an ORM (object relational mapping) framework (i.e. hibernate, iBatis ...) if application code is big enough. Performance issues of ORM frameworks can be handled by detailed configuration parameters.
  12. Partition big and unused/rarely used tables/table parts to different physical storages for better query performance.
  13. For big, sensitive and mission critic database systems, use disaster recovery and security services like failover clustering, auto backups, replication etc.
  14. Use constraints (foreign key, check, not null ...) for data integrity. Don’t give whole control to application code.
  15. Lack of database documentation is evil. Document your database design with ER schemas and instructions. Also write comment lines for your triggers, stored procedures and other scripts.
  16. Use indexes for frequently used queries on big tables. Analyser tools can be used to determine where indexes will be defined. For queries retrieving a range of rows, clustered indexes are usually better. For point queries, non-clustered indexes are usually better.
  17. Database server and the web server must be placed in different machines. This will provide more security (attackers can’t access data directly) and server CPU and memory performance will be better because of reduced request number and process usage.
  18. Image and blob data columns must not be defined in frequently queried tables because of performance issues. These data must be placed in separate tables and their pointer can be used in queried tables.
  19. Normalization must be used as required, to optimize the performance. Under-normalization will cause excessive repetition of data, over-normalization will cause excessive joins across too many tables. Both of them will get worse performance.
  20. Spend time for database modeling and design as much as required. Otherwise saved(!) design time will cause (saved(!) design time) * 10/100/1000 maintenance and re-design time.
read more.

Comments

Popular posts from this blog

​THE INTERVIEWEE WHO HATED ME​

6 years ago a guy looked at me face to face, and boldly told me; "I don't like you!" I immediately fired a response, I asked him that day; "Thank you for the honest feedback, but those that you like, how has it made their life better? How does your liking people pay their bills or take a bank loan? My brother keep your like, I need God's like And that's what guarantees my future. Today I joined a CEO friend of mine in an interview Panel to recruit some new staff, it was a long session, as we returned from a coffee break to continue the hectic interview session, here was this same guy walked in with his grey jacket and CV coming for the interview. Our eyes kissed by fluke, we immediately recognised each other; "the world is indeed spherical", I soliloquized. He felt very uncomfortable through out the interview, one could clearly see the volcanic eruption ongoing in his whole nervous system, he even mistook his date of birth for his last date of empl...

You're Bigger by Jekalyn Carr (Live Performance) Official Video

Canton Jones - Hallelujah ft. Deitrick Haddon, DPB,

Why Bro Ocholla is Trending

Awesome day. Been happy, save for having a simple repetitive task. This means, I had time to find out why bro ocholla was [not] praying today. A photo is worth a thousand words, so here you go.

Skillet - Hero (Official Video)

Don't Do this Twice, if at all you have to.

Here are 10 career mistakes you won’t make twice. 1. Taking a good job for granted. 2. Assuming that your job will last. 3. Taking a new job too quickly. 4. Burning a bridge. 5. Quitting a job in haste. 6. Failing to negotiate for your value. 7. Putting up with mistreatment at work. 8. Chasing a job opportunity to oblivion. 9. Failing to set boundaries at work. 10. Trusting the wrong person. Even if you try, it’s hard to appreciate a great job while you’re in it. Even though it’s a great job, there are always problems and headaches to deal with. You don’t realize how good the job was until you’re gone. Once you feel that pang “Wow — I didn’t know how good I had it!” you’ll appreciate all kinds of good things — not just jobs, but other good experiences, people and feelings too — more than you did before. source: http://www.forbes.com/sites/lizryan/2016/09/05/ten-career-mistakes-you-wont-make-twice/#760feadc7439

Pieces of advice

A very poor newly wedded, young couple lived in a small farm. One day the husband made the following proposal to his wife: Honey, I will leave the house: I will travel faraway, get a job and work hard in order to come back and give you the comfortable life that you deserve. I do not know how long I will stay away, I only ask one thing, please wait for me, and while I am away, you should be faithful to me, because I will be faithful to you. His wife agreed, so the young man left. He walked many days until he found a farmer who was in need of someone to help him. The young man offered his services. He was accepted. Therefore he discussed the terms with his boss: Let me work for as long as I want and when I think I should go home, please relieve me of my duties. I do not want to receive my salary. I ask you to save it for me, until the day I leave. The day I decide to go, please give me the money and I will go my way. They agreed on that. So, the young man worked for twenty years witho...

SQL & Json

I have data in a mysql field saved as ' {"0":"43","1":"34","2":"67"} ', where 43,34 and 67 are ID values. I want to use the Ids later, via a query using SQL IN Operator. How do I implement that?

Music & Earphones

Honestly, I'm losing friends...mmh, that's totally bad. I'm not saying am an Island. The point is, My friend is that one guy talking to me through my earphones, accompanied by beats and tunes. In simple terms, well-conveyed lyrics. I like these people....I have friends. One of them told me my eyes will pop-out if I listen alot using earphones. Please, if yours popped out because of earphones, let me know... It might be true. I know not. But I looked around and spotted something worth of sharing. Pop ém out!! Comparative Examples of Noise Sources, Decibels & Their Effects Noise Source Decibel Level Decibel Effect Jet take-off (at 25 meters) 150 Eardrum rupture Aircraft carrier deck 140 Military jet aircraft take-off from aircraft carrier with afterburner at 50 ft (130 dB). 130 Thunderclap, chain saw. Oxygen torch (121 dB). 120 Painful. 32 times as loud as 70 dB. Steel mill, auto horn at 1 meter. Turbo-fan aircraft at takeoff power at 2...

Civil War

This is not about war at home. This is not about war in my country. It's just about a nice movie. I love the new movie  +Captain America  It's just mind blowing... You got to watch this trailer...