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*
-
A message queue would be a sensible approach. I was wondering if, when implemented I might have problems with multiple threads making the same query repeatedly and slowing the server down. This should help mitigate that. As a side note, the bit field was supposed to be "checked out" field.Matt S– Matt S2013-08-27 20:35:14 +00:00Commented Aug 27, 2013 at 20:35
-
I dont think a true/false can handle both a selected and checked out status as there are 3 states - unprocessed, being processed, and processing done. Otherwise if the server goes down, you may miss items in the queue if they are prematurely marked as completed. Thus separating them into two columns, one for processing state, and for checked out state.GrandmasterB– GrandmasterB2013-08-27 21:10:21 +00:00Commented Aug 27, 2013 at 21:10
-
see edited answer for other approachesGrandmasterB– GrandmasterB2013-08-27 21:15:08 +00:00Commented Aug 27, 2013 at 21:15
-
I thought about the single thread approach but I don't think it is suitable because the processing the thread is required to do requires access to Internet resources where the latency is unknown therefore the thread could be waiting some considerable time. There was also a misunderstanding over the "checked_out", I didn't mean there were three states but I also misunderstood your comment. I understand now what you mean about a "checked out" and a "processed" flag.Matt S– Matt S2013-08-28 06:59:15 +00:00Commented Aug 28, 2013 at 6:59
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