<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Working with Xojo I have this issue, too.<div><br></div><div>- Checking if the unique value is already in the database. The SQL query was slow. Going in Xojo through an exception was even slower. Now I have a VBitSet, which made my app on repeated data import quite a bit faster.</div><div><br></div><div>- Adding record to a large table: I remember talking to Ruslan about this. This remains a problem. </div><div><br></div><div>For small to midsize databases it’s faster to do a complete re-index after adding the records. But I think I had problems with this. Also when the re-index doesn’t run in the background the customer isn’t happy. For large databases when only a few records are added this doesn’t work anyhow.</div><div><br></div><div><br></div><div><div><div>On 16.11.2013, at 09:30, Ivan Smahin <<a href="mailto:ivan_smahin@paradigmasoft.com">ivan_smahin@paradigmasoft.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div><br class="Apple-interchange-newline">On Nov 14, 2013, at 2:58 AM, Chris Jones <<a href="mailto:cjones@daz3d.com">cjones@daz3d.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi,<div><br clear="all"><div>I am running into a slow down when I try to insert about a 100 records into a table. The table has only one column, a var char, and has a unique index on that column. The test table I am working with has about 320000 records currently in it. Also I am accessing the database as a client ( db is running as a service).</div><div><br></div><div>Is there a better way to do this than "AddRecord" on a table object? I need to ensure that the inserted items are unique and quickly searchable, hence the unique index. Thank you for any help.</div></div></div></blockquote></div><div style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;">One more possibility is to use row-constructor syntax:</span><div style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br></div><div style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(209, 47, 27);">insert into t1 VALUES (1, '1'), (2, '2') </div><div apple-content-edited="true"><br></div><div apple-content-edited="true">It means - add 2 rows at once:</div><div apple-content-edited="true"><br></div><div apple-content-edited="true">1, '1'</div></div></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Mit freundlichen Grüßen/Regards<br><br>Trixi Willius<br><br><a href="http://www.mothsoftware.com">http://www.mothsoftware.com</a><br>Mail Archiver X: The email archiving solution for professionals</div></span></span>
</div>
<br></div></body></html>