Friday 26 March 2021

Coding practices to generate report

 Some experience to generate report, for instance, Excel file.

1) simple case: 

    read data from data source (database) using JPA or sql

    process data

    generate report file using data processed

2) case 2

if you need to read relatively large data from DB, and process the data in the code. During the process, you need to access DB multiple times, either read data or write data. If this happens, think about if you can use some sql to do the process in DB side without moving data back and force between DB and application as internet is time consuming.


3) case 3

based on case 2, if the business logic is too complex to process using a few sql statements, think about using temporary table. Populating the temp table from a main table data first, then update columns step by step, based on the needs, you can add some helper columns. If the temp table is correctly populated, you can read data from the table to generate the report file. 

If you need physical data, can consider view as well.

6 comments:

  1. I am very happy to share this amazing testimony Dr.Oje Abacha herbs help me to cure my Herpes Simplex Disease and i was haven this Herpes 3 months ago.. i had unprotected sex with a man i met and he did tell me he had Herpes disease after some weeks later i started seeing bump and sore on my vaginal, and i was so scared so i went to my doctor and did some test and behold i was confirmed Herpes positive, i went home so confused and frustrated about this, especially when i was told there was no permanent cure for it, i said to myself i need to research about this, maybe there might be a herbal help for me, and so i did and when i was researching about herbal herbs, i keep seeing Dr.Oje Abacha on every blog and guestbook, so i immediately wrote to Dr.Oje Abacha, after we discuss he prepared my medicine and sent it to me, within few days i received my medicine and started applying it as instructed within 2weeks Dr.Oje Abacha told me to go for check up, and i did, shocking my result came out negative, i am so happy thanks to you sir,
    contact his email address,
     oje.herbalsolutioncentre@gmail.com  
    more information WhatsApp Number : +2349050957732
    by Dr.Oje Abacha website

    https://ojeherbalsolutioncentre.wordpress.com

    ReplyDelete
  2. Breakup is certainly painful and no one wants to go through it. But still if you had a breakup due to any reason, you can still get your ex back, I just got my husband back through the help of genuine love spell caster called dr unity. My name is Emily Sarah am from Tx,USA. My husband left me for another woman, This was just 3 years of our marriage. The most painful thing is that I was pregnant with our second baby. I wanted him back. I did everything within my reach to bring him back but all was in vain, I wanted him back so badly because of the love I had for him, I begged him with everything, I made promises but he refused. I explained my problem to my friend and she suggested that I should rather contact a spell caster that could help me cast a spell to bring him back , I had no choice than to try it. I messaged the spell caster called dr unity, and he assured me there was no problem and that everything will be okay before 11 hours. He cast the spell and surprisingly 11 hours later my husband called me. I was so surprised, I answered the call and all he said was that he was so sorry for everything that had happened He wanted me to return to him. He also said he loved me so much. I was so happy and went to him that was how we started living together happily again.thanks to dr unity . if you are here and your Lover is turning you down, or your husband moved to another woman, do not cry anymore, contact Dr.Unity for help now..Here his contact..WhatsApp him: +2348055361568 ,
    Email him at: Unityspelltemple@gmail.com
    ,Watch this YouTube channel to know how grateful I am https://youtube.com/shorts/rBPtBktMmtA?feature=share

    ReplyDelete
  3. simple ways on how to get your ex back fast, so try and see the wonders yourself, I just got my husband back through the help of genuine love spell caster called dr unity. My name is Emily Sarah am from Tx,USA. My husband left me for another woman, This was just 3 years of our marriage. The most painful thing is that I was pregnant with our second baby. I wanted him back. I did everything within my reach to bring him back but all was in vain, I wanted him back so badly because of the love I had for him, I begged him with everything, I made promises but he refused. I explained my problem to my friend and she suggested that I should rather contact a spell caster that could help me cast a spell to bring him back , I had no choice than to try it. I messaged the spell caster called dr unity, and he assured me there was no problem and that everything will be okay before 11 hours. He cast the spell and surprisingly 11 hours later my husband called me. I was so surprised, I answered the call and all he said was that he was so sorry for everything that had happened He wanted me to return to him. He also said he loved me so much. I was so happy and went to him that was how we started living together happily again.thanks to dr unity . if you are here and your Lover is turning you down, or your husband moved to another woman, do not cry anymore, contact Dr.Unity for help now..Here his contact..WhatsApp him: +2348055361568 ,
    Email him at: Unityspelltemple@gmail.com
    ,Watch this YouTube channel to know how grateful I am https://youtube.com/shorts/rBPtBktMmtA?feature=share

    ReplyDelete
  4. Are you battling with any health related issues or infection is not the end of your life, why not contact a herbal practitioner for cure Dr OLIHA has herbal remedies and permanent solution for all your health related problems. recommend him to you today only because i have also used his herbal medicine and it worked perfectly on my health problem, you can actually save yourself from giving your hard earned money to Scammers if only you can contact Dr OLIHA today for genuine and Permanent cure herbal products . Pls help share this post to save yourself and your love ones. Dr OLIHA is specialize in these areas, Permanent herbal supplements for anxiety and depression, HIV/AIDS, Diabetes, Epilepsy, Blood, Cancer, HPV, ALS, herpes etc. Email {oliha.miraclemedicine@gmail.com}  or WhatsApp him on this Tell.Number +2349038382931

    ReplyDelete
  5. All thanks to Mr Anderson Carl for helping with my profits and making my fifth withdrawal possible. I'm here to share an amazing life changing opportunity with you. its called Bitcoin / Forex trading options. it is a highly lucrative business which can earn you as much as $2,570 in a week from an initial investment of just $200. I am living proof of this great business opportunity. If anyone is interested in trading on bitcoin or any cryptocurrency and want a successful trade without losing notify Mr Anderson Carl now on Whatsapp: +1(252)285-2093 Email: andersoncarlassettrade@gmail.com

    ReplyDelete
  6. MASSIVE THANKS TO HERBALIST DOCTOR KHAM MEDICINE FOR CURING ME FROM HERPES VIRUS, UNBELIEVABLE TWO WEEKS HERPES CURE BY HERBALIST KHAM. VISIT HERBALIST KHAM WEBSITE: https://herbalistdrkhamcaregiver.simdif.com/There are treatments to get rid of genital herpes/ disease with traditional herbs from Dr. Kham. I was positive about this infection (HERPES) and I lost hope because I was outcast and rejected even by my best friends. I searched online to know more on how to eradicate this virus and enquired about a cure for herpes and I got a testimony posted by Dr. Kham patient on how she was cured from HSV-2, So i decided to contact the same herbalist Dr. Kham because I know that nature has the power to heal everything, So I contacted him to know he can help me and he told me never to worry that he will help me out with his natural herbs created by God Almighty! After 2 days of contacting him, He told me that the cure has been prepared and he will send it to me via (UPS DELIVERY SERVICES) and it got to me in 5 days! I used the medicine as he instructed me(MORNING AND EVENING) and I was cured after taking the dosage for two weeks. It really looks like a dream to me but I am so happy now!! that is the reason I decided to also add more comment of Him to this blog because that was what I promise him that I would testify about his good work to the people if his herbal medicine would cure me, So if you need his help also, You can Email him on dr.khamcaregiver@gmail.com or You can Message him on ICQ or WhatsApp with his contact number +2348159922297 for more information.

    ReplyDelete