Commit d476689
authored
feat: disable described statement cache timeout by default (GoogleCloudPlatform#4409)
* feat: disable described statement cache timeout by default
The timeout for the described statements cache was set to 30 minutes by default. This default
is now set to Long.MAX_VALUE, as elements in this cache are (almost) never invalidated. They
would only be invalidated if the data type of an existing column would change while the
application is running, which is a very rare event. The added number of roundtrips that are
added by invalidating elements in this cache once every 30 minutes does not weigh up against
the tiny probability that any elements are actually invalid.
* build: add expected system table1 parent 2e09673 commit d476689
3 files changed
Lines changed: 10 additions & 3 deletions
File tree
- .ci/e2e-expected
- src
- main/java/com/google/cloud/spanner/pgadapter/metadata
- test/java/com/google/cloud/spanner/pgadapter/metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | | - | |
| 95 | + | |
95 | 96 | | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
707 | 707 | | |
708 | 708 | | |
709 | 709 | | |
710 | | - | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
711 | 715 | | |
712 | 716 | | |
713 | 717 | | |
| |||
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
| 106 | + | |
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| |||
0 commit comments