You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 1) If I remove the long HTML string from the dictionary blob, and place it into a text column instead (the blob would be much smaller in this case, all the other data in the dictionary are fairly short strings/arrays of strings), do you think this would help significantly? 2) While putting all db transactions in a thread would keep my UI thread from blocking, it would not actually help shorten the actual transaction time (in fact, it would probably get worse, since I'd need to manage and pass messages between threads). This is something I want to avoid if at all possible.akaii– akaii2010-03-16 02:41:45 +00:00Commented Mar 16, 2010 at 2:41
- I do think that it would be faster to put the HTML strings in a text column. I've done the same thing in a program I've been working on, and the insert completes much faster than yours does. Give it a try. I'd love to hear how it works out for you. You are right to say that putting the work in a separate thread won't speed up the process, but it will certainly improve the responsiveness of the UI, which is incredibly important.Anthony– Anthony2010-03-16 05:23:20 +00:00Commented Mar 16, 2010 at 5:23
- I intend to do that, thanks. I plan to a) shrink my dictionary by discarding data I don't need to store, and b) split my dictionary into text/varchars at storage time and reassemble it when i need it... ill still need for some blobs for a couple of arrays contained within my dictionary, but theyre far far smaller than the huge html string that occupies most of the dictionary's space. hopefully, this will improve things.akaii– akaii2010-03-16 08:28:50 +00:00Commented Mar 16, 2010 at 8:28
- Would calling NSInvocationOperation be okay so long as I open a new connection each time I want to carry out a transaction? Particularly, I'm probably going to carry out deletes and inserts/updates with NSInvocationOperation, fire and forget. Selects...are another matter I'll have to deal with seperately, since I actually need the results after the operation is finished.akaii– akaii2010-03-16 11:31:39 +00:00Commented Mar 16, 2010 at 11:31
- It should work, but be careful not to access the database more than once from different threads. If you do try to create two or more connections to the database at the same time, your application will crash.Anthony– Anthony2010-03-16 12:49:16 +00:00Commented Mar 16, 2010 at 12:49
| Show 1 more comment
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-sql