Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fc1fd8f4
Commit
fc1fd8f4
authored
Apr 15, 2002
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
query cache code can be excluded from server
parent
e534922b
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
11 deletions
+11
-11
BUILD/compile-pentium-debug
BUILD/compile-pentium-debug
+1
-1
Docs/manual.texi
Docs/manual.texi
+4
-0
configure.in
configure.in
+1
-1
include/my_global.h
include/my_global.h
+0
-8
mysql-test/t/innodb_cache.test
mysql-test/t/innodb_cache.test
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+4
-1
No files found.
BUILD/compile-pentium-debug
View file @
fc1fd8f4
...
@@ -6,7 +6,7 @@ path=`dirname $0`
...
@@ -6,7 +6,7 @@ path=`dirname $0`
extra_flags
=
"
$pentium_cflags
$debug_cflags
"
extra_flags
=
"
$pentium_cflags
$debug_cflags
"
c_warnings
=
"
$c_warnings
$debug_extra_warnings
"
c_warnings
=
"
$c_warnings
$debug_extra_warnings
"
cxx_warnings
=
"
$cxx_warnings
$debug_extra_warnings
"
cxx_warnings
=
"
$cxx_warnings
$debug_extra_warnings
"
extra_configs
=
"
$pentium_configs
$debug_configs
$static_link
"
extra_configs
=
"
$pentium_configs
$debug_configs
$static_link
--without-query-cache
"
extra_configs
=
"
$extra_configs
"
extra_configs
=
"
$extra_configs
"
...
...
Docs/manual.texi
View file @
fc1fd8f4
...
@@ -36325,6 +36325,8 @@ Following are some performance data for the query cache
...
@@ -36325,6 +36325,8 @@ Following are some performance data for the query cache
@item
@item
If you want to disable the query cache code set @code{query_cache_size=0}.
If you want to disable the query cache code set @code{query_cache_size=0}.
By disabling the query cache code there is no noticeable overhead.
By disabling the query cache code there is no noticeable overhead.
(query cache can be excluded from code with help of configure option
@code{--without-query-cache})
@item
@item
If all of the queries you're preforming are simple (such as selecting a
If all of the queries you're preforming are simple (such as selecting a
row from a table with one row); but still differ so that the queries can
row from a table with one row); but still differ so that the queries can
...
@@ -48918,6 +48920,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
...
@@ -48918,6 +48920,8 @@ Our TODO section contains what we plan to have in 4.0. @xref{TODO MySQL 4.0}.
@itemize @bullet
@itemize @bullet
@item
@item
New configure option --without-query-cache.
@item
Memory allocation strategy for 'root memory' changed. Block size now grows
Memory allocation strategy for 'root memory' changed. Block size now grows
with number of allocated blocks.
with number of allocated blocks.
@item
@item
configure.in
View file @
fc1fd8f4
...
@@ -1823,7 +1823,7 @@ AC_ARG_WITH(embedded-server,
...
@@ -1823,7 +1823,7 @@ AC_ARG_WITH(embedded-server,
)
)
AC_ARG_WITH
(
query_cache,
AC_ARG_WITH
(
query_cache,
[
--without-query-cache
Don not build query cache
in
embedded server
.],
[
--without-query-cache
Do not build query cache
.],
[
with_query_cache
=
$withval
]
,
[
with_query_cache
=
$withval
]
,
[
with_query_cache
=
yes
]
[
with_query_cache
=
yes
]
)
)
...
...
include/my_global.h
View file @
fc1fd8f4
...
@@ -1023,12 +1023,4 @@ typedef union {
...
@@ -1023,12 +1023,4 @@ typedef union {
#define C_MODE_END
#define C_MODE_END
#endif
#endif
/*
Now if query is taken off then tests with query cache fails
SANJA TODO: remove this when problem with mysql-test will be solved
*/
#if defined(MYSQL_SERVER) && !defined(HAVE_QUERY_CACHE)
#define HAVE_QUERY_CACHE
#endif
#endif
/* _global_h */
#endif
/* _global_h */
mysql-test/t/innodb_cache.test
View file @
fc1fd8f4
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_innodb
.
inc
--
source
include
/
have_query_cache
.
inc
#
#
# Without auto_commit.
# Without auto_commit.
...
...
sql/mysqld.cc
View file @
fc1fd8f4
...
@@ -291,8 +291,9 @@ ulong keybuff_size,sortbuff_size,max_item_sort_length,table_cache_size,
...
@@ -291,8 +291,9 @@ ulong keybuff_size,sortbuff_size,max_item_sort_length,table_cache_size,
ulong
com_stat
[(
uint
)
SQLCOM_END
],
com_other
;
ulong
com_stat
[(
uint
)
SQLCOM_END
],
com_other
;
ulong
slave_net_timeout
;
ulong
slave_net_timeout
;
ulong
thread_cache_size
=
0
,
binlog_cache_size
=
0
,
max_binlog_cache_size
=
0
;
ulong
thread_cache_size
=
0
,
binlog_cache_size
=
0
,
max_binlog_cache_size
=
0
;
ulong
query_cache_size
=
0
;
#ifdef HAVE_QUERY_CACHE
#ifdef HAVE_QUERY_CACHE
ulong
query_cache_
size
=
0
,
query_cache_
limit
=
0
,
query_cache_startup_type
=
1
;
ulong
query_cache_limit
=
0
,
query_cache_startup_type
=
1
;
Query_cache
query_cache
;
Query_cache
query_cache
;
#endif
#endif
...
@@ -3048,8 +3049,10 @@ CHANGEABLE_VAR changeable_vars[] = {
...
@@ -3048,8 +3049,10 @@ CHANGEABLE_VAR changeable_vars[] = {
#ifdef HAVE_QUERY_CACHE
#ifdef HAVE_QUERY_CACHE
{
"query_cache_limit"
,
(
long
*
)
&
query_cache_limit
,
{
"query_cache_limit"
,
(
long
*
)
&
query_cache_limit
,
1024
*
1024L
,
0
,
ULONG_MAX
,
0
,
1
},
1024
*
1024L
,
0
,
ULONG_MAX
,
0
,
1
},
#endif
/*HAVE_QUERY_CACHE*/
{
"query_cache_size"
,
(
long
*
)
&
query_cache_size
,
{
"query_cache_size"
,
(
long
*
)
&
query_cache_size
,
0
,
0
,
ULONG_MAX
,
0
,
1
},
0
,
0
,
ULONG_MAX
,
0
,
1
},
#ifdef HAVE_QUERY_CACHE
{
"query_cache_startup_type"
,(
long
*
)
&
query_cache_startup_type
,
{
"query_cache_startup_type"
,(
long
*
)
&
query_cache_startup_type
,
1
,
0
,
2
,
0
,
1
},
1
,
0
,
2
,
0
,
1
},
#endif
/*HAVE_QUERY_CACHE*/
#endif
/*HAVE_QUERY_CACHE*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment