Closed
Bug 666558
Opened 13 years ago
Closed 13 years ago
Increase SQLITE_MAX_SCHEMA_RETRY value
Categories
(Core :: SQLite and Embedded Database Bindings, defect)
Core
SQLite and Embedded Database Bindings
Tracking
()
RESOLVED
FIXED
mozilla9
People
(Reporter: mak, Assigned: mak)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 3 obsolete files)
1.11 KB,
patch
|
sdwilsh
:
review+
|
Details | Diff | Splinter Review |
This is the maximum time SQLite should try to recompile statements when the schema changes, as discussed in bug 610789 the default value is low for our needs, so to move on with 3.7.7 update (and next ones) we should increase it.
From my local testing we may hit about 10 retries, with a pessimistic approach, I'd set the limit to 25.
Assignee | ||
Updated•13 years ago
|
Blocks: SQLite3.7.7.1, 610789
Assignee | ||
Comment 1•13 years ago
|
||
Shawn, do you think for this we also need the configure.in check? So far we hit this only in a stress test, real-life cases should be rare (but not impossible), forcing the config in configure.in may exclude system SQLite in a lot of cases where it would be sufficient. Going over the limit just means a statement fails to be executed and throws.
Attachment #541352 -
Flags: review?(sdwilsh)
Comment 2•13 years ago
|
||
(In reply to comment #1)
> Shawn, do you think for this we also need the configure.in check? So far we
> hit this only in a stress test, real-life cases should be rare (but not
> impossible), forcing the config in configure.in may exclude system SQLite in
> a lot of cases where it would be sufficient. Going over the limit just means
> a statement fails to be executed and throws.
I'd like to see a configure.in test, yeah.
Assignee | ||
Comment 3•13 years ago
|
||
well, my question was not about the test, but about the fact we want a configure.in entry at all for this setting, since the default value is fine for real-life, not for our stress tests.
Comment 4•13 years ago
|
||
(In reply to comment #3)
> well, my question was not about the test, but about the fact we want a
> configure.in entry at all for this setting, since the default value is fine
> for real-life, not for our stress tests.
But that stress test could easily happen in the real world. I'd much rather we enforce that system SQLite is the same as ours.
Assignee | ||
Comment 5•13 years ago
|
||
ok, I think it's unlikely, but I don't have a strong opinion on both sides, so I will update the patch asap with the configure check.
Assignee | ||
Comment 6•13 years ago
|
||
This adds the configure.in check, the only problem is that SQLite API doesn't allow me to check the exact value, just if the configure option is used or not'. So I've only documented that whoever adds the option should check the value in db/sqlite3/src/Makefile.in, should be enough since this option is so new I doubt anyone may have set it up, and also would make no sense for anyone to set it to a lower number than default.
Attachment #541352 -
Attachment is obsolete: true
Attachment #547099 -
Flags: review?(sdwilsh)
Attachment #541352 -
Flags: review?(sdwilsh)
Comment 7•13 years ago
|
||
Comment on attachment 547099 [details] [diff] [review]
patch v1.1
Review of attachment 547099 [details] [diff] [review]:
-----------------------------------------------------------------
Can you file the bug to remove this and mark it dependent on bug 679267 please?
r=sdwilsh with comment addressed (and sorry it took me so long to look at this).
::: configure.in
@@ +6719,5 @@
> + AC_TRY_RUN([
> + #include "sqlite3.h"
> +
> + int main(int argc, char **argv){
> + return !sqlite3_compileoption_used("SQLITE_MAX_SCHEMA_RETRY");
you should be able to do `SQLITE_MAX_SCHEMA_RETRY=25` like we do with `SQLITE_THREADSAFE`
Attachment #547099 -
Flags: review?(sdwilsh) → review+
Assignee | ||
Comment 8•13 years ago
|
||
So, after some testing, looks like SQlite team forgot to add SQLITE_MAX_SCHEMA_RETRY to azCompileOpt vector, this means sqlite3_compileoption_used is unable to check it, so we can't have any configure.in check for this.
Assignee | ||
Comment 9•13 years ago
|
||
per IRC discussion, this skips the configure.in check that is moved to a follow-up bug, since it needs an upstream fix.
Attachment #547099 -
Attachment is obsolete: true
Comment 11•13 years ago
|
||
Comment on attachment 554266 [details] [diff] [review]
patch v1.3
Review of attachment 554266 [details] [diff] [review]:
-----------------------------------------------------------------
r=sdwilsh
Attachment #554266 -
Flags: review+
Assignee | ||
Comment 12•13 years ago
|
||
Whiteboard: [inbound]
Comment 13•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [inbound]
Target Milestone: --- → mozilla9
Updated•3 months ago
|
Product: Toolkit → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•