where can I find documentation of r2dbc metrics? - spring-data-r2dbc

Where can I find in depth descriptions of the r2dbc metrics?
Specifically I try to understand what exactly these represent:
r2dbc_pool_acquired_connections
r2dbc_pool_allocated_connections
r2dbc_pool_idle_connections
r2dbc_pool_max_allocated_connections
r2dbc_pool_max_pending_connections
r2dbc_pool_pending_connections

A bit more information I found in the description of io.r2dbc.pool.PoolMetrics interface. Example link:
https://javadoc.io/static/io.r2dbc/r2dbc-pool/0.9.0.M1/io/r2dbc/pool/PoolMetrics.html

Related

Can we use sslmode=allow and sslfactory=org.postgresql.ssl.NonValidatingFactory alternatively in PostgreSQL?

I have followed both the docs https://jdbc.postgresql.org/documentation/head/ssl-client.html and https://jdbc.postgresql.org/documentation/publicapi/org/postgresql/ssl/NonValidatingFactory.html
what I found
we can use
sslmode=allow and sslfactory=org.postgresql.ssl.NonValidatingFactory
alternatively.
Please suggest to me if anything is wrong with my understanding.

How to filter results in Flutter package flappy_search_bar?

From what I read in the package documentation ,
the "searchBarController" parameter should allow to filter the results, but I can't find any documentation. I also read through the package content but can't find how to use it.
I found the answer to my question in the example file, which shows how to us the SearchBarController : https://github.com/smartnsoft/flappy_search_bar/blob/master/example/lib/main.dart

Mongodb exact phrase search

As I understood from Mongodb documentation of text search.
if i want to search about Java or (coffee shop)
I need to do it like
{$text:{$search:"Java \"coffee shop\""}}
Exact Phrase search in mongodb documentation
so it should return all the documents contain Java or (coffee shop).
but it acts exactly as Java and (coffee shop).
so I think that i didn't get it right from the documentation.
so please.
I need clear explanation for why i got that result?
and
how to get the required output Java or (coffee shop)?
This is a known issue,
and is being tracker in SERVER-30163.
Not Solved yet so please go to SERVER-30163 to up-vote it.

Postgres SPI cursor options: Where is a complete list? / What are the default options?

From the Postgresql documentation:
int cursorOptions
Integer bit mask of cursor options; zero produces default behavior.
What is the default behavior? Where is a complete list of cursor options? I've been looking through the documentation for an hour now. Can someone provide a link or point me in the right direction?
I am compiling a list of cursorOptions as I peel through the documentation to help save the others the trouble.
Defined in <src/include/nodes/parsenodes.h>:
CURSOR_OPT_BINARY (0x0001)
CURSOR_OPT_SCROLL (0x0002) is required by several SPI commands. Setting this option will allow for more complex movement through cursors. Further details are explained in the documentation of SPI_cursor_fetch, SPI_cursor_move, SPI_scroll_cursor_fetch, SPI_scroll_cursor_move
CURSOR_OPT_NO_SCROLL (0x0004)
CURSOR_OPT_INSENSITIVE (0x0008)
CURSOR_OPT_HOLD (0x0010) is ignored by SPI_prepare_cursor. However, it's behavior for SPI_prepare_params and SPI_cursor_open_with_args is not specified in the documentation.
CURSOR_OPT_CUSTOM_PLAN (0x0020)
CURSOR_OPT_FAST_PLAN (0x0040)
CURSOR_OPT_GENERIC_PLAN (0x0080)
NOTE: If anyone with the ability to edit posts wishes to contribute to this answer (additional options, functionality or insights), please feel free to do so. I will try to move comments up into the answer as they come.

BIRT: Getting started with the Chart API

So I need a few simple pointers with the BIRT chart API.
I am trying to draw a simple line chart of a numeric value over time. I have a vector of (Date,Double) pairs as input. I have read through the examples in org.eclipse.birt.chart.examples but not yet gained enough traction with the API to start making use of it. Just composing a org.eclipse.birt.chart.model.impl.ChartWithAxesImpl has me stumped.
The eventual destination is an Eclipse editor, and that I can do. Is there a tutorial or book anyone can recommend that might get me going with the BIRT chart side?
I should be very grateful
M.
Well. There is this example: http://www.eclipse.org/articles/article.php?file=Article-BIRTChartEngine/index.html
But I am having some problems actually getting it to work myself. All I end up with is an exception like this:
java.lang.NullPointerException
at org.eclipse.birt.chart.device.swt.SwtTextMetrics.getHeight(SwtTextMetrics.java:178)
at org.eclipse.birt.chart.computation.Methods.computeFontHeight(Methods.java:1272)
at org.eclipse.birt.chart.computation.BIRTChartComputation.computeFontHeight(BIRTChartComputation.java:30)
at org.eclipse.birt.chart.computation.EllipsisHelper$SimpleTester.<init>(EllipsisHelper.java:213)
at org.eclipse.birt.chart.computation.EllipsisHelper.createSimpleTester(EllipsisHelper.java:176)
at org.eclipse.birt.chart.computation.EllipsisHelper.simpleInstance(EllipsisHelper.java:183)
at org.eclipse.birt.chart.computation.LabelLimiter.limitLabelSize(LabelLimiter.java:256)
at org.eclipse.birt.chart.computation.LabelLimiter.limitLabelSize(LabelLimiter.java:211)
at org.eclipse.birt.chart.model.layout.impl.TitleBlockImpl.computeBox(TitleBlockImpl.java:288)
at org.eclipse.birt.chart.model.layout.impl.LabelBlockImpl.getPreferredSize(LabelBlockImpl.java:266)
at org.eclipse.birt.chart.internal.layout.LayoutManager$ChartLayout.<init>(LayoutManager.java:111)
at org.eclipse.birt.chart.internal.layout.LayoutManager.doLayout_tmp(LayoutManager.java:1145)
at org.eclipse.birt.chart.internal.layout.LayoutManager.doLayout(LayoutManager.java:1310)
at org.eclipse.birt.chart.factory.Generator.build(Generator.java:1092)
I had the same trouble with the examples from org.eclipse.birt.chart.examples. There are some good java code snippets, but you do not see to what they correspond. This is why I decided to generate all the examples and put them on a web site: BIRT Charts Gallery.