@pigeonflight I think I found the problem: plone/guillotina@34c6bc0 In G6 we changed some methods of the ICatalog interface and the behavior of the catalog api.
GET @search uses
ICatalog.searchand expects queries to be parsed
POST @search uses
ICatalog.search_rawand expects raw queries (i.e. ES queries)
The former is not supported in pgcatalog. So, I'd say it's not a bug and could be solved changing the api call to a GET. Maybe this breaking change could have had been documented better
I need to re-read this to understand the implications. Are you just saying that GET based search is off the table when using pgcatalog?
Hi! I want to choose the pool_size of the db pool from my k8s yaml:
I have the following name/value
- name: G_databases__db__pool_size - value: "4"
the problem is that guillotina doesn't convert the "4" to integer and asyncpg crashes with:
TypeError '<=' not supported between instances of 'str' and 'int'
I was thinking to convert the str to int here https://github.com/plone/guillotina/blob/4c814b60b774f94a39344514b6127fa1ad85963f/guillotina/db/factory.py#L64 but I'm asking to know if there is a better way / place to do it.
ps: k8s doesn't like a numeric value under
how would everyone feel about simply adding prometheus directly to guillotina?
I'd like to add metrics to our database layers and adding some kind of metrics utility in order for us to capture this seems a bit silly. Prometheus has very low overhead and most of us use it anyways. Thoughts?