Timeline for Is it better to use a switch statement or database to look through 5,000 to 10,000 instances?
Current License: CC BY-SA 3.0
16 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 14, 2017 at 7:13 | comment | added | Aluan Haddad | False dichotomy suggested. | |
| Mar 5, 2014 at 20:08 | audit | Suggested edits | |||
| Mar 5, 2014 at 20:26 | |||||
| Feb 12, 2014 at 15:50 | answer | added | Brendan | timeline score: 6 | |
| Feb 12, 2014 at 11:48 | comment | added | Rory Hunter | You could always use SQLite if you wanted to avoid having a separate DB server. | |
| Feb 12, 2014 at 8:20 | answer | added | lortabac | timeline score: 4 | |
| Feb 12, 2014 at 8:15 | vote | accept | user3201185 | ||
| Feb 12, 2014 at 8:15 | comment | added | user3201185 | @PieterB - Now that you put it like that, yeah, it makes sense to use a normal database. Thanks for the enlightenment. | |
| Feb 12, 2014 at 8:12 | comment | added | Pieter B | Am I understanding you correctly that you want to dynamically build a php script with a very big switch-tree? Aren't you then basically making your own (very imperfect) database engine? I'd say use a database, your problems have been solved by others, no need to re-solve them. | |
| Feb 12, 2014 at 8:02 | answer | added | Adrian Pirvulescu | timeline score: 7 | |
| Feb 12, 2014 at 7:42 | comment | added | user3201185 | @MainMa - No, IDs uniquely identify the cases, what I meant is to allow alternative ways of passing the query. If I search for "name of case" or "name-of-case" I receive the ID 123456. Doing this with a switch statement is easy by just stacking the different case matches above one another. | |
| Feb 12, 2014 at 7:40 | comment | added | Arseni Mourzenko |
I don't understand “the name of case and name-of-case should return me the id 123456”. Does it mean that caseNames uniquely identify the entities, but ids are not? If so, what's the point of using the ids?
|
|
| Feb 12, 2014 at 7:38 | history | tweeted | twitter.com/#!/StackProgrammer/status/433505476320710656 | ||
| Feb 12, 2014 at 7:26 | history | edited | user3201185 |
edited tags
|
|
| Feb 12, 2014 at 7:22 | review | First posts | |||
| Feb 12, 2014 at 7:29 | |||||
| Feb 12, 2014 at 7:13 | history | edited | user3201185 | CC BY-SA 3.0 |
edited tags
|
| Feb 12, 2014 at 7:06 | history | asked | user3201185 | CC BY-SA 3.0 |