<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0cm;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:36.0pt;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle23
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;
        font-weight:normal;
        font-style:normal;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
/* List Definitions */
@list l0
        {mso-list-id:185948895;
        mso-list-type:hybrid;
        mso-list-template-ids:-967653950 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l0:level2
        {mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level3
        {mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level4
        {mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level5
        {mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level6
        {mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level7
        {mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level8
        {mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l0:level9
        {mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1
        {mso-list-id:1554582418;
        mso-list-type:hybrid;
        mso-list-template-ids:820704366 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l1:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:54.0pt;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l1:level2
        {mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level3
        {mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level4
        {mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level5
        {mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level6
        {mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level7
        {mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level8
        {mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l1:level9
        {mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2
        {mso-list-id:1893882645;
        mso-list-type:hybrid;
        mso-list-template-ids:-627157168 67698689 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l2:level1
        {mso-level-number-format:bullet;
        mso-level-text:;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        margin-left:54.0pt;
        text-indent:-18.0pt;
        font-family:Symbol;}
@list l2:level2
        {mso-level-tab-stop:72.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level3
        {mso-level-tab-stop:108.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level4
        {mso-level-tab-stop:144.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level5
        {mso-level-tab-stop:180.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level6
        {mso-level-tab-stop:216.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level7
        {mso-level-tab-stop:252.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level8
        {mso-level-tab-stop:288.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
@list l2:level9
        {mso-level-tab-stop:324.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-AU link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='color:#1F497D'>Thanks Charaka,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>That is good stuff.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>First:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>You should migrate to Ingres
10.x and OpenROAD 6.2<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I recall seeing 9.x copydb
generating very large exports. <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Second:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I avoid copydb -c (I’ve written
on this subject previously)<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>although in this case it doesn’t
make much difference to size.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Here are my test results<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|crm_contact_person_image|file_content|iietab_234_235|704|1523712|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|crm_cust_email|document_content|iietab_238_239|0|40960|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|crm_document|document_content|iietab_23a_23b|420608|888782848|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|crm_document_repository|document_content|iietab_23c_23d|0|40960|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|crm_email_attachment|attachment_content|iietab_23e_23f|0|40960|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|crm_enduser_contact_person_image|file_content|iietab_241_242|9|57344|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|vms_agreement_document|document_content|iietab_6ee_6ef|299|663552|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|vms_company|comapanylogocontent|iietab_6f1_6f2|15|65536|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|vms_image|visitor_image|iietab_6fd_6fe|6804|14401536|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|vms_visitor_fingerprint|visitor_fingerprint|iietab_707_708|0|40960|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>|vms_visitor_image|visitor_image|iietab_709_70a|2184844|4616634368|<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>copydb -c<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
1392334 Aug 3 17:54 crm_contact_person_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:54 crm_cust_email.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
831748295 Aug 3 17:54 crm_document.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:54 crm_document_repository.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:54 crm_email_attachment.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
17135 Aug 3 17:54 crm_enduser_contact_person_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
590780 Aug 3 17:54 vms_agreement_document.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
28319 Aug 3 17:54 vms_company.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
13458852 Aug 3 17:54 vms_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:54 vms_visitor_fingerprint.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
4324618546 Aug 3 17:54 vms_visitor_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>copydb<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
1391289 Aug 3 17:58 crm_contact_person_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:58 crm_cust_email.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
831409805 Aug 3 17:58 crm_document.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:58 crm_document_repository.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:58 crm_email_attachment.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
17131 Aug 3 17:58 crm_enduser_contact_person_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
590416 Aug 3 17:58 vms_agreement_document.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
28606 Aug 3 17:58 vms_company.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
13448916 Aug 3 17:58 vms_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres
ingres 0 Aug 3 17:58 vms_visitor_fingerprint.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>-rw-rw-r--. 1 ingres ingres
4321404836 Aug 3 17:58 vms_visitor_image.ingres<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Third:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Are you able to compress the
images to a lower resolution. In my experience you can adequately store
typewritten and printed text to about 40KB grayscale.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Last:<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>The calcs look good for your
data.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>iietab_91d_91e<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>15778 x 8K pages = 129,253,376
bytes allocated<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>2000 x 61163 rows = 122,326,000
bytes data. <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>This is about right allowing for
primary key and fill factor<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>122,326,000 / 47 images =
2,602,681 bytes per image. This is about the same as your
size estimate.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Paul<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> openroad-users@googlegroups.com
[mailto:openroad-users@googlegroups.com] <b>On Behalf Of </b>Charaka Wijerathne<br>
<b>Sent:</b> Wednesday, 3 August 2016 3:20 PM<br>
<b>To:</b> paul.white@shift7solutions.com.au<br>
<b>Cc:</b> openroad-users@googlegroups.com;
openroad-developer@lists.ingres.com; info-ingres@lists.planetingres.org<br>
<b>Subject:</b> RE: [openroad-users] Saving .jpg in Ingres<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Hi Paul,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>01:
Through our android system, we are receiving images from Client’s mobile.<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US
style='color:#1F497D'>Clients take a picture of their Paper Timesheet and will
attach and submit with Mobile Timesheet.<o:p></o:p></span></p>
<p class=MsoNormal style='text-indent:36.0pt'><span lang=EN-US
style='color:#1F497D'>Web server that hosted mobile services, will receive this
and it will save those details and picture in ingres DB.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><img width=675 height=530
id="Picture_x0020_40" src="cid:image001.jpg@01D1EDA4.CDF72280"
alt=GettingImageFromMobile.jpg></span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><img width=948 height=531
id="Picture_x0020_41" src="cid:image002.jpg@01D1EDA4.CDF72280"
alt=SavingToDB.jpg></span><span lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><img width=643 height=554
id="Picture_x0020_42" src="cid:image003.jpg@01D1EDA4.CDF72280" alt=Querry.jpg></span><span
lang=EN-US style='color:#1F497D'><o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>02:
This is the command that used for taking backup,<o:p></o:p></span></p>
<p class=MsoListParagraph style='margin-left:54.0pt;text-indent:-18.0pt;
mso-list:l2 level1 lfo2'><![if !supportLists]><span lang=EN-US
style='font-family:Symbol;color:#1F497D'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-US style='color:#1F497D'>copydb
-uingres -dest=. -source=. pit::egans -c timesheet_image<o:p></o:p></span></p>
<p class=MsoListParagraph style='margin-left:54.0pt;text-indent:-18.0pt;
mso-list:l2 level1 lfo2'><![if !supportLists]><span lang=EN-US
style='font-family:Symbol;color:#1F497D'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-US style='color:#1F497D'>sql
-uingres pit::egans < copy.out > copyout.LOG<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>03:
please find attached log file
for output of other commands<o:p></o:p></span></p>
<p class=MsoListParagraph style='margin-left:54.0pt;text-indent:-18.0pt;
mso-list:l1 level1 lfo4'><![if !supportLists]><span lang=EN-US
style='font-family:Symbol;color:#1F497D'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-US style='color:#1F497D'>Examine.LOG<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Thanks.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Kind Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'>Charaka Wijerathne<o:p></o:p></span></p>
</div>
<p class=MsoNormal><span lang=EN-US style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Paul White
[mailto:paul.white@shift7solutions.com.au] <br>
<b>Sent:</b> Wednesday, August 03, 2016 10:18 AM<br>
<b>To:</b> Charaka Wijerathne<br>
<b>Cc:</b> openroad-users@googlegroups.com; openroad-developer@lists.ingres.com;
info-ingres@lists.planetingres.org<br>
<b>Subject:</b> RE: [openroad-users] Saving .jpg in Ingres<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Hi Charaka,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>You didn’t say how you inserted
the data – I presume OpenROAD. Please post a simple sample.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>And didn’t say how you copied
out the table. Please post the command.<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>I’m guessing you have used
copydb -c<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>please post the output of these
commands<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>help table </span><span
lang=EN-US style='font-size:9.0pt;font-family:"Courier New";color:#365F91'>timesheet_image;
\p\g<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>select r1.relid as base_table,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
c.attname as column_name,<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>
r2.relid as extend_table, t.num_rows, t.number_pages * t.table_pagesize tabsize<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>from iirelation r1,iirelation
r2,iiattribute c,iiextended_relation e, iitables t<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>where r1.reltid=e.etab_base and
r2.reltid=e.etab_extension<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> and r1.reltid=c.attrelid<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> and c.attid=e.etab_attid<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> and r1.reltidx=0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> and c.attrelidx=0<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>and r2.relid = t.table_name<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>and r1.relid = 'timesheet_image'<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>order by base_table,column_name;
</span><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>\p\g<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>help table iietab_XXXXXXX; -- determined from
previous statement<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'>Paul<o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'> <o:p></o:p></span></p>
<p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>
<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> <a
href="mailto:openroad-users@googlegroups.com">openroad-users@googlegroups.com</a>
[<a href="mailto:openroad-users@googlegroups.com">mailto:openroad-users@googlegroups.com</a>]
<b>On Behalf Of </b>Charaka Wijerathne<br>
<b>Sent:</b> Wednesday, 3 August 2016 2:34 PM<br>
<b>To:</b> <a href="mailto:openroad-users@googlegroups.com">openroad-users@googlegroups.com</a>;
<a href="mailto:openroad-developer@lists.ingres.com">openroad-developer@lists.ingres.com</a><br>
<b>Cc:</b> <a href="mailto:paul.white@shift7solutions.com.au">paul.white@shift7solutions.com.au</a><br>
<b>Subject:</b> [openroad-users] Saving .jpg in Ingres<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>Hi Guys,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>We want to save JPG files in a table (in
ingres DB)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Table schema as shown below,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> /* TABLES */<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>\continue<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>create table timesheet_image(<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> timesheet_image_id
varchar(36) not null default '',<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> timesheet_id
varchar(36) not null default '',<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> image_no
integer not
null default 0,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> content
long
byte not null default ''<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>with noduplicates,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>nojournaling,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>page_size = 8192,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>location = (ii_database),<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>security_audit=(table,norow)<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>\p\g<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>modify timesheet_image to btree unique on<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> timesheet_image_id<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>with nonleaffill = 80,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> leaffill = 70,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> fillfactor = 80,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> extend = 16,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'> page_size = 8192<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:9.0pt;font-family:"Courier New";
color:#365F91'>\p\g<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>We have inserted 50 records, then took a
backup of this table.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>timesheet_image.ingres file is more than
10GB. But all our JPG files were 2MB-3MB<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Why this table taking this much of space ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Could you please advise me what is the best
solution to work with (saving & retrieving) JPG files in ingres ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>PC environment,<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo6'><![if !supportLists]><span
lang=EN-US style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-US>Windows Server 2012 R2<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo6'><![if !supportLists]><span
lang=EN-US style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-US>Ingres 9.2.1<o:p></o:p></span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt;mso-list:l0 level1 lfo6'><![if !supportLists]><span
lang=EN-US style='font-family:Symbol'><span style='mso-list:Ignore'>·<span
style='font:7.0pt "Times New Roman"'>
</span></span></span><![endif]><span lang=EN-US>OR 5.0/0804<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Thanks.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Kind Regards,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Charaka Wijerathne<o:p></o:p></span></p>
</div>
</body>
</html>