DD&D – Database Design & Development

database-design-development
database-design-development

With reference to a previous post, we will talk about designing what can essentially be described as the foundations of our building, the Data Trier (more specifically the Database).

Planning

“You get it wrong here, all sorts of problems will bubble up to other layers of your application!”

As stated before the key to a good application is planing, literally any planing is better than just diving into a project head first.

Think of a building, and imagine that we start work on building it, the whole structure is going to rely on a solid foundation that in turn will handle all the stresses of the structure above and absorb any changes or shocks, the data tier (or database) is the same thing.

The first and foremost thing is to identify the actors and objects in your application structure and decide what is going to be in your database. Not all things have to be drawn from the database, this can be the file system or even web services. This all depends on what you are storing and how often you will need to access it.

For example, say we are creating an application that will list out all objects offered by a “Free-to-play” games provider such as Ad2Games or Ad4Game? The games are retrieved via a web service and are usually in JSON or XML format

{
   "GameName":"SomeGame",
   "Description":"Some description will go here",
   "Categories":[
      {
         "Name":"Category1"
      },
      {
         "Name":"Category2"
      },
      {
         "Name":"Category3"
      }
   ]
}

We can of-course draw this info from the web service and simply display it. But what if we need to do some sorting or searching, which the API doesn’t support?

We should, of-course, transfer this data to the database, reduce the API calls, increase site performance and transfer this to the database.

Design

In a typical relational database (the only type I will cover here) data is stored in organizational units called tables. These tables can have links in the form of foreign keys and unique identifiers in the form of primary keys. More can be read here.

Accessing the data

What do we do when we need to get a hold of our newly created data? We write queries! Queries are, simply said, commands we give to the database engine that should (but don’t always have to) retrieve results for us.

There are generally four different types of operations we execute to manipulate data, we use the “CRUD” acronym:

  1. Insert (Create)
  2. Select (Read)
  3. Update (Update)
  4. Delete (Delete)

 

So what is the best way to execute these commands from our application?

Being big headed, I will say that the best way is always through Stored Procedures. But in reality everyone has their own way.

Because we use the “Three Tier Architecture” model, we always prefer to segregate the data and application tier logically and that means separating the way data is retrieved back to our application. In the application all we really need is a mechanism to execute and possibly supply different arguments to it, that’s it!

Just as we supply arguments to a web service in the form of POST or GET variables, or even HEADER variables, we supply arguments to stored procedures in the form of the parameters they require. At the end, what the server does and how it does it does not concern the business logic layer. The only thing that is important is the DATA CONTRACT (the data set that is returned).

Each project is unique, but adhering to simple guidelines such as this we are able to make our application both modular and scalable.

Zlatko L | September 16, 2016

Leave a Reply

CONTACT USCONTACT US

grow your business today

Contact Name (required)

Organization Name (required)

What Are Your Interests/Needs

Web site(required)

E-mail (required)

Your Message

Our ServicesOur Services

WHAT WE CAN DO

Social Media Strategy

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Content Strategy

Many organizations feel the need to  implement an editorial calendar to fill a content quota, but we recognize that without a strong content strategy this can be an incredibly wasteful investment.

 Content Writing

The content on your site tells your visitors who you are, encourages them to dig into your site .This content will be largely responsible for helping to attract visitors to your site.

Web Design & Development

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Search Engine Optimization

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

WordPress Experts

We can create a beautiful, easy-to-use, custom site, or we can help you transfer your existing site to the best CMS on the Internet.

Our website design services are used by brands who are in need of a facelift. We design beautiful websites at affordable rates. Not only do the websites we develop look absolutely amazing, but we design them with your marketing goals in mind. High performing websites are focused on user experience, responsiveness across all devices, and clear call-to-actions to funnel traffic to your contact form or product page.

social ads guru digital marketin responsive design
Social Ads Guru Responsive Design

Our team firmly believes it is important to share what you know and to help others. We consult, hold workshops, speak at events, and offer IT support so we can to help spread some goodness in the world.

Our social media management services are designed to grow your brand’s online presence. We help your brand establish trust and build relationships with potential buyers. The benefits of using our social media management services consist of increased awareness, website traffic and lead generation. Additional benefits include influenced Google rankings, blog promotions, reputation management, and customer service to current and potential customers.

Web presence

We analyze yous business web page element as well as ranking on google.

Code Quality

We analyze your business web page code quality according to W3C standards.

Social Media Presence

We analyze social media presence and competitor using social data.

Social Ads Guru Analytics

SEO

We use web page analyzer for seo.

Brand Identity

We do brand identity analysis.

Google Trends

We use google trend facility based on Google search to show how often a particular search-term is entered .

Blog Blog

GURU DIARY
Why you should upgrade your Drupal to 8.8.0? – Open Source CMS New Releases

Drupal 8.8.0 — the last normal feature release of Drupal 8 — is now available for download. Some of the updates in this release include:

Stable Media Library:

The media library allows reuse of images, documents, videos and other digital assets across the website. The media library was previously a beta experimental module.

Media Library, experimental since Drupal 8.6.0, is a stable core module in Drupal 8.8.0. It does three main things:

  • Enhances the administrative media list page with a visual grid display of media thumbnails.
  • Allows users to select media for use in a field, or in a text editor, via a gorgeous, intuitive modal UI.
  • Enables authors to embed media items into text content, via the aforementioned gorgeous UI.

Experimental Administration Theme:

MOPRO CONTENT MANAGEMENT SYSTEM OVERVIEW

MoPro is a company Based in the USA, California and they offer services that include design, development and hosting your website. Not long time ago I had the chance to support on of sites hosted by MoPro on their servers and managed by their CMS.

Drupal 8 is out and it represents powerful new suite of tools
drupal-8-released
Drupal 8 represent powerful new suite of tools and the strongest link in content supply chain.

Drupal is an “out of the box” web content management tool and it represent high customizing platform – which help you build the right tool to serve your content management strategy.

Popular Travel #hashtags on Instagram

We are all curious about where other people are traveling and what are they researching and looking for on Social Media networks.

POPULAR-TRAVEL-HASHTAGS-min

Instagram rolls out its Live video feature in the U.S.

Instagram live video

Instagram’s latest features focus more on live streaming and less on photo sharing. On Monday, Instagram started rolling out its “Live” video-streaming feature to iOS and Android users in the U.S. The company first unveiled this feature in November, as a way to “connect with your friends and followers right now.” You will also be able to find popular Live videos in the Explore page. According to Instagram, Live will be available to everyone in the next few days.

Man Devotes His Life To Adopting Old Dogs Who Can’t Find Forever Homes

man-adopts-senior-dogs-shelter-steve-greig-51

Months kept passing after Steve Greig’s beloved dog died, but he still felt crushed. That’s when he decided he should give another dog a good life. But not just any dog. He went to his local shelter in Denver, Colorado to adopt the “least adoptable” senior dog, as these are the ones too often overlooked.

How to use Halloween marketing ideas for small business?

Halloween offers a unique opportunity for businesses to launch some fun and interesting marketing campaigns. This trend has expanded from USA to the whole world and each year we have the opportunity to catch some interesting ideas for promotion businesses.

Most interesting Tweets about Trump and power of hashtags

The campaign for United States presidential election of 2016 is in full swing and the elections are scheduled for Tuesday, November 8, 2016. These will be the 58th quadrennial U.S. presidential election.

Quick way to determine SoC’s GPU performance

 

Despite a common approach to employ usage of comprehensive benchmarks to determine performance of different hardware components of processing units, this if often not a great idea, mainly due to general limitations mentioned in my earlier blog post.

An alternative way to quickly predict the potential and a likely performance of a given GPU under stress in terms of its limits is to observe its raw „GFLOPs score. Although it isn’t a definite case, it is quite much a great predictor and it is definitely a great way to scope the potential of any given GPU.

What is Drupal and why should we use it?

drupal-8-released

Features of Drupal.

Drupal is number one platform for web content management among global enterprises, governments, higher education institutions, and NGOs. Flexible and highly scalable, Drupal publishes a single web site or shares content in multiple language across many devices. By using Drupal as solution business leaders transform their content management into powerful digital solutions.

CONTACT USCONTACT US

grow your business today

Contact Name (required)

Organization Name (required)

What Are Your Interests/Needs

Web site(required)

E-mail (required)

Your Message

Our ServicesOur Services

WHAT WE CAN DO

Social Media Strategy

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Content Strategy

Many organizations feel the need to  implement an editorial calendar to fill a content quota, but we recognize that without a strong content strategy this can be an incredibly wasteful investment.

 Content Writing

The content on your site tells your visitors who you are, encourages them to dig into your site .This content will be largely responsible for helping to attract visitors to your site.

Web Design & Development

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

Search Engine Optimization

Our team will help you identify industry influences and future brand advocates, in order to build a passionate fan base that is active and regularly shares your content.

WordPress Experts

We can create a beautiful, easy-to-use, custom site, or we can help you transfer your existing site to the best CMS on the Internet.

Our website design services are used by brands who are in need of a facelift. We design beautiful websites at affordable rates. Not only do the websites we develop look absolutely amazing, but we design them with your marketing goals in mind. High performing websites are focused on user experience, responsiveness across all devices, and clear call-to-actions to funnel traffic to your contact form or product page.

social ads guru digital marketin responsive design
Social Ads Guru Responsive Design

Our team firmly believes it is important to share what you know and to help others. We consult, hold workshops, speak at events, and offer IT support so we can to help spread some goodness in the world.

Our social media management services are designed to grow your brand’s online presence. We help your brand establish trust and build relationships with potential buyers. The benefits of using our social media management services consist of increased awareness, website traffic and lead generation. Additional benefits include influenced Google rankings, blog promotions, reputation management, and customer service to current and potential customers.

Web presence

We analyze yous business web page element as well as ranking on google.

Code Quality

We analyze your business web page code quality according to W3C standards.

Social Media Presence

We analyze social media presence and competitor using social data.

Social Ads Guru Analytics

SEO

We use web page analyzer for seo.

Brand Identity

We do brand identity analysis.

Google Trends

We use google trend facility based on Google search to show how often a particular search-term is entered .

Blog Blog

GURU DIARY
Why you should upgrade your Drupal to 8.8.0? – Open Source CMS New Releases

Drupal 8.8.0 — the last normal feature release of Drupal 8 — is now available for download. Some of the updates in this release include:

Stable Media Library:

The media library allows reuse of images, documents, videos and other digital assets across the website. The media library was previously a beta experimental module.

Media Library, experimental since Drupal 8.6.0, is a stable core module in Drupal 8.8.0. It does three main things:

  • Enhances the administrative media list page with a visual grid display of media thumbnails.
  • Allows users to select media for use in a field, or in a text editor, via a gorgeous, intuitive modal UI.
  • Enables authors to embed media items into text content, via the aforementioned gorgeous UI.

Experimental Administration Theme:

MOPRO CONTENT MANAGEMENT SYSTEM OVERVIEW

MoPro is a company Based in the USA, California and they offer services that include design, development and hosting your website. Not long time ago I had the chance to support on of sites hosted by MoPro on their servers and managed by their CMS.

Drupal 8 is out and it represents powerful new suite of tools
drupal-8-released
Drupal 8 represent powerful new suite of tools and the strongest link in content supply chain.

Drupal is an “out of the box” web content management tool and it represent high customizing platform – which help you build the right tool to serve your content management strategy.

Popular Travel #hashtags on Instagram

We are all curious about where other people are traveling and what are they researching and looking for on Social Media networks.

POPULAR-TRAVEL-HASHTAGS-min

Instagram rolls out its Live video feature in the U.S.

Instagram live video

Instagram’s latest features focus more on live streaming and less on photo sharing. On Monday, Instagram started rolling out its “Live” video-streaming feature to iOS and Android users in the U.S. The company first unveiled this feature in November, as a way to “connect with your friends and followers right now.” You will also be able to find popular Live videos in the Explore page. According to Instagram, Live will be available to everyone in the next few days.

Man Devotes His Life To Adopting Old Dogs Who Can’t Find Forever Homes

man-adopts-senior-dogs-shelter-steve-greig-51

Months kept passing after Steve Greig’s beloved dog died, but he still felt crushed. That’s when he decided he should give another dog a good life. But not just any dog. He went to his local shelter in Denver, Colorado to adopt the “least adoptable” senior dog, as these are the ones too often overlooked.

How to use Halloween marketing ideas for small business?

Halloween offers a unique opportunity for businesses to launch some fun and interesting marketing campaigns. This trend has expanded from USA to the whole world and each year we have the opportunity to catch some interesting ideas for promotion businesses.

Most interesting Tweets about Trump and power of hashtags

The campaign for United States presidential election of 2016 is in full swing and the elections are scheduled for Tuesday, November 8, 2016. These will be the 58th quadrennial U.S. presidential election.

Quick way to determine SoC’s GPU performance

 

Despite a common approach to employ usage of comprehensive benchmarks to determine performance of different hardware components of processing units, this if often not a great idea, mainly due to general limitations mentioned in my earlier blog post.

An alternative way to quickly predict the potential and a likely performance of a given GPU under stress in terms of its limits is to observe its raw „GFLOPs score. Although it isn’t a definite case, it is quite much a great predictor and it is definitely a great way to scope the potential of any given GPU.

What is Drupal and why should we use it?

drupal-8-released

Features of Drupal.

Drupal is number one platform for web content management among global enterprises, governments, higher education institutions, and NGOs. Flexible and highly scalable, Drupal publishes a single web site or shares content in multiple language across many devices. By using Drupal as solution business leaders transform their content management into powerful digital solutions.