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

Rudimental - These Days feat. Jess Glynne, Macklemore & Dan Caplen [Offi...

Pretty depends on which side you're at. . .

Canton Jones - Hallelujah ft. Deitrick Haddon, DPB,

Imagine - John Lennon and The Plastic Ono Band (with the Flux Fiddlers)

Marriage | Whatsapp forward

MARRIAGE....... He was having his evening beverage That's when she joined him. "Hi there handsome, you're looking good. So fine I can eat you up" she said sitting down. "I thought we agreed to keep away from each other? I am a married man" he told her. " Come on. I won't bite. You can't resist me, no man can" she said. "I am a married man" he told her. "Fight all you want, but soon I will have you. I am way better than your wife" she told him. "You are nothing compared to my wife" he told her off. "Really? All this body. All these curves. All these sweetness. I bet your wife is not as good in bed as I am" she told him unbuttoning the top button of her blouse to reveal her cleavage, then lifting up her skirt, just a bit. "If I was a lustful and unfaithful man, all that would move me. But I am too grown to be enticed by what you're showing off. I am a grown man, you think all that consumes

Lecrae Kills It!!

Please don't have weird imaginations..you need to checkout out this.. Andy Mineo Ripping em apart... Check it out

Christmas and all - WELCOME TO MOMBASA

 Dear Kenyans (Sana sana Nairobians) who will be coming down to Mombasa for the December holidays: 1. We people who live in Mombasa live in houses. Our homes. 'Hatulalangi' kwa ma hoteli so stop with the 'Nakuja kesho. Ni hoteli gani poa?' Imagine unaeza Google 'Hotels in Mombasa' but we can refer you to a few holiday homes and villa owners who do short term rentals (I'll do another post on this.) 2. If you happen to be looking for transportation, number za JamboJet, Modern coast, Mash, Dreamline are also on Websites. 3. Unless you are really close with someone, do not expect them to hire a car for you ndio upige lap nayo. Hata kama unajilipia. Most of you end up binge drinking and fucking up cars mnaacha watu wakisumbuka. 4. Most Coasterians like Nairobians have schedules. Biryani is mostly a Friday dish after a long week and Friday prayers. Usianze kupiga simu Monday saa tatu asubuhi ati, 'Nipeleke nikakule biryani.' No please. 6. Ugali

A little Wait

"A certain gentleman walked into a hotel and after perusing through the menu ordered for some food. After about 20 mins another group of gentlemen walked in and ordered for theirs. To his dismay,the first gentleman saw them get served first. He watched as they began to eat and laugh heartily. He even overheard one of them brag about how he knew everyone at that hotel and how things moved fast for him there. He felt he was being mocked.He contemplated leaving. But he had waited soo long. Unable to take it anymore, he called the waiter and spoke rather verbosely of how unfair things were. The waiter calmly told him, yours is a special order sir, being prepared by the chief chef himself. Their orders were prepared hurriedly by interns because the top chefs are busy with yours. That's why they came first. Please have some juice as you wait. Unknown to him the owner of the hotel (who happened to be an old long lost friend of his) had seen him coming and wanted to surprise hi

Change Yo Whatsapp Status..!!

Weird thoughts on my whatsapp lists 1. Someone's status is 'sleeping' for 13days. He is probably dead. 2. Someone is "driving" for 5days. Probably anaenda Rongai. 3. Someone' s "happy" for one month. Do they live in paradise. 4. Someone's always 'Available'. How free are they? 5. Someone is like from day1 'Hey there.I am using WhatsApp.' I know! Thats why you are on my list. 6. Someone updates 'Urgent calls only'. Are you in the ambulance service?. 7. Someone updates 'Cant talk. WhatsApp only'. Dude, throw away that phone. You are not using it for its primary function. 8. Another say they are 'At the gym'. I wish to see their shape when they come out. 9. Another updates they are 'In a meeting' for like 6months. Kwani anaplan kuuza Kenya. 10. Someone else says 'Battery about to die' for 3months. Boss kwani your battery is immortal or in ICU? 11. Another lady updates