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*
-
I think 2 is the best - reacting to those which are recorded as actually deleted - falling back to 3 if necessary.Steve– Steve2024-07-29 14:33:42 +00:00Commented Jul 29, 2024 at 14:33
-
1if the user has clicked on a row to delete it, and the delete method hasnt errored, you can just remove the row they clicked onEwan– Ewan2024-07-29 15:31:18 +00:00Commented Jul 29, 2024 at 15:31
-
I used to just have an event “database changed”. Plus a method that wouldn’t read an object from the database, but pass an existing object, update it with the contents of the database, returning a Boolean whether there was any change. That was plenty fast on an iPhone 5. With a GUI where every object could have a different height.gnasher729– gnasher7292024-07-29 16:42:13 +00:00Commented Jul 29, 2024 at 16:42
-
1You get around many performance problems if your GUI library has a well - performing class for tables. For example, an iOS table view stores one table view cell per table row that is displayed. Your table may have 200,000 items but only 20 cells on the screen are actually used at any time. The same cells are reused for whatever item they display at the moment.gnasher729– gnasher7292024-08-01 16:55:03 +00:00Commented Aug 1, 2024 at 16:55
Add a 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. design-patterns), 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