ad.hasareli

Well-known member
  • Mar 27, 2010
    5,264
    580
    113
    දකුනේ කොල්ලෙක්
    oka report ekakma venna oneda machan!!

    bill no eka dammahama anit details grid 3ka pennuvot madida....mata hitenne ee vage ekak tama vade goda daganna puluvan..eth ube project eke tiyenavanam oka report ekak venna one kiyala..poddak hitanna venava:yes::yes::yes:

    assignment ake thiyenawa machan CR use karanna oni kiyala mekatama use karanna oni kiyala nehe.... mama wena thenaka CR akak gahala thiyenne so aka shape macha... datagride 3k and sql 3k use karala data pass kara nam wede shape neda ?????????
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    assignment ake thiyenawa machan CR use karanna oni kiyala mekatama use karanna oni kiyala nehe.... mama wena thenaka CR akak gahala thiyenne so aka shape macha... datagride 3k and sql 3k use karala data pass kara nam wede shape neda ?????????

    eka tamai mama kuwe ban..CR valata ubala project eke example karanam..oka user inquiry ekak vage pennapan...ekata ubalata salakeemakut labevi..sure..mokada inquiries incorporate karanne loku project vala..dynamicaly data userta balanna ona unahama..ex: Balance of the inventory!!
     

    ad.hasareli

    Well-known member
  • Mar 27, 2010
    5,264
    580
    113
    දකුනේ කොල්ලෙක්
    eka tamai mama kuwe ban..CR valata ubala project eke example karanam..oka user inquiry ekak vage pennapan...ekata ubalata salakeemakut labevi..sure..mokada inquiries incorporate karanne loku project vala..dynamicaly data userta balanna ona unahama..ex: Balance of the inventory!!

    machan databse aka normalize karanawa nam kohomada karanna oni ?????????
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    machanla ubala hemotama thnaks a lot ..... mama den mokakda karanna ona ??? mage me wede karanna puluwan lesi widihak kiyanna program aka slow nowi :(
    SQL Stored Procedure තමයි ඕකට හොඳම විසඳුම. client application එක slow වෙන්නෙ නෑ.
    client side temporary database එකකට data ලියලා ඒක report එකට link කරන එක තමයි ලේසිම විදිය. හැබැයි ගොඩක් data තියෙනකොට slow වෙයි.

    application එකේ recordset වලට data තියාගෙන කෙලින්ම report එකට යවන්න පුලුවන් හැබැයි‌ ඒක තමයි slowම විදිය.
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    machan databse aka normalize karanawa nam kohomada karanna oni ?????????

    eka table ekakata vada table vala data duplicate vena eka navattanna ona..
    data dependancies balala eva eka table ekaka danna one....eka vin5,10 karanna ba machan..data modeling tama no1 tiyenna one..natnam anit evat summa!!:no:
     

    DJvodka

    Well-known member
  • Mar 31, 2009
    3,375
    292
    83
    A land like no other
    its not a performance degrade as the server returns the required data without the client having to process it at the client end.

    I don't think we are in the same page here. I’m not talking about the client end. Let’s say you have employee, project and department tables in your DB. Departments and Employees are assigned to projects. You want to get number of projects, completed by each employee. The only way to achieve this is to use a join. But lets say you have another column called project count, in the employee table which get incremented by 1 whenever a project get completed, using a trigger, of course. Now you can directly query the new column, without joining and you can yield results more efficiently. So no extra join algorithms needed to perform, just pulling the stuff from the base table. Please note that I’m not a DB savvy or anything.:)
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    SQL Stored Procedure තමයි ඕකට හොඳම විසඳුම. client application එක slow වෙන්නෙ නෑ.
    client side temporary database එකකට data ලියලා ඒක report එකට link කරන එක තමයි ලේසිම විදිය. හැබැයි ගොඩක් data තියෙනකොට slow වෙයි.

    application එකේ recordset වලට data තියාගෙන කෙලින්ම report එකට යවන්න පුලුවන් හැබැයි‌ ඒක තමයි slowම විදිය.

    machan...table diha balapan..SP liyala report ekata link karanna onet tun vidihakata neda..mama ape yaluvata kuwe sub report gahanna kiyala..eka attatama slow venava...ekata sollution ekak vidihata mama kuwe index karanna kiyala...:confused::confused:
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    I don't think we are in the same page here. I’m not talking about the client end. Let’s say you have employee, project and department tables in your DB. Departments and Employees are assigned to projects. You want to get number of projects, completed by each employee. The only way to achieve this is to use a join. But lets say you have another column called project count, in the employee table which get incremented by 1 whenever a project get completed, using a trigger, of course. Now you can directly query the new column, without joining and you can yield results more efficiently. So no extra join algorithms needed to perform, just pulling the stuff from the base table. Please note that I’m not a DB savvy or anything.:)
    um.. how is this in anyway related to views degrading performance ??
    I do agree that using triggers makes an efficient case in the scenario you describe but how is it related to using views ?
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    I don't think we are in the same page here. I’m not talking about the client end. Let’s say you have employee, project and department tables in your DB. Departments and Employees are assigned to projects. You want to get number of projects, completed by each employee. The only way to achieve this is to use a join. But lets say you have another column called project count, in the employee table which get incremented by 1 whenever a project get completed, using a trigger, of course. Now you can directly query the new column, without joining and you can yield results more efficiently. So no extra join algorithms needed to perform, just pulling the stuff from the base table. Please note that I’m not a DB savvy or anything.:)

    its a best idea..but look when system using multi - users @ same time... trigger may be lock ur table for update..it may be concurring issue @ the end!!!:shocked:
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    machan...table diha balapan..SP liyala report ekata link karanna onet tun vidihakata neda..mama ape yaluvata kuwe sub report gahanna kiyala..eka attatama slow venava...ekata sollution ekak vidihata mama kuwe index karanna kiyala...:confused::confused:
    SP එකේ query 3ම ලියලා data process කරලා තනි recordset එකක් හැටියට report එකට එවන්නෙ. ඒක server side process එකක් හින්දා client slow වෙන්නෙ නෑ.
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    SP එකේ query 3ම ලියලා data process කරලා තනි recordset එකක් හැටියට report එකට එවන්නෙ. ඒක server side process එකක් හින්දා client slow වෙන්නෙ නෑ.

    tani record set ekak vidihata evala ape yaluva kiyana report format ekata ganna bane ban ? billno eka eka table ekaka nati unot rotation,return area blank..eka oya kiyana single sp + recordset ekena prepare karanna puluvanda?..ehema karat..client end eke report eken process venava neda?:(:(:(:(:(
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    tani record set ekak vidihata evala ape yaluva kiyana report format ekata ganna bane ban ? billno eka eka table ekaka nati unot rotation,return area blank..eka oya kiyana single sp + recordset ekena prepare karanna puluvanda?..ehema karat..client end eke report eken process venava neda?:(:(:(:(:(
    නෑ බං, SP එක ඇතුලෙ query 3 run කරල data ගන්නවා table 3න්ම. අරන් temporary table එකකට දානවා පෙන්නන් ඕනෙ පිලිවෙලටම. ඊට පස්සෙ ඒ temporary table එකේ තියන data යවනවා result data set එක හැටියට report එකට.

    ඕක efficient නෑ, නමුත් database structure එක වෙනස් කරන්නෙ නැත්තං ඕක තමයි fastest විදිය.
     

    DJvodka

    Well-known member
  • Mar 31, 2009
    3,375
    292
    83
    A land like no other
    um.. how is this in anyway related to views degrading performance ??
    I do agree that using triggers makes an efficient case in the scenario you describe but how is it related to using views ?

    View has a extra layer of processing so querying from a view takes more time than directly querying from the table. Its same as a join query I referred earlier. VIEWs generate data by algorithms(collection of JOINs,SELECTs,..etc) since they do not exists. Its good for security, role definition and etc. But since OP is more worried about the performance I think he should consider optimizing the design instead. :nerd:
     

    kosandpol

    Well-known member
  • Jun 10, 2008
    45,329
    1,492
    113
    View has a extra layer of processing so querying from a view takes more time than directly querying from the table. Its same as a join query I referred earlier. VIEWs generate data by algorithms(collection of JOINs,SELECTs,..etc) since they do not exists. Its good for security, role definition and etc. But since OP is more worried about the performance I think he should consider optimizing the design instead. :nerd:
    oh I see, yes, indeed what you say is true.
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    :yes:
    View has a extra layer of processing so querying from a view takes more time than directly querying from the table. Its same as a join query I referred earlier. VIEWs generate data by algorithms(collection of JOINs,SELECTs,..etc) since they do not exists. Its good for security, role definition and etc. But since OP is more worried about the performance I think he should consider optimizing the design instead. :nerd:
    :yes::yes::yes::yes:
     

    agnipra

    Active member
  • May 25, 2008
    720
    59
    28
    Colombo
    නෑ බං, SP එක ඇතුලෙ query 3 run කරල data ගන්නවා table 3න්ම. අරන් temporary table එකකට දානවා පෙන්නන් ඕනෙ පිලිවෙලටම. ඊට පස්සෙ ඒ temporary table එකේ තියන data යවනවා result data set එක හැටියට report එකට.

    ඕක efficient නෑ, නමුත් database structure එක වෙනස් කරන්නෙ නැත්තං ඕක තමයි fastest විදිය.

    machan...attatama temp_table ekak fill karanna puluvan...et problem eke mee report eke pennanna ona vidihat ekka temp_table ekak madi neda..rotation/return vena venama pennanna one nisa...1ka temp ekakata okkoma data fill karala vadak na vage neda? eka mata tikak coil ban:confused::confused::confused::eek::no:

    also..oracle vala vage nam temp table valata data fill karala gannava kiyanne database achive on karala tibunot baduma tama!! :no::no:

    main problem is in table design..i think..!!:eek::eek: