------------------------------------- CONFIGURACION DEL postgresql.conf ------------------------------------- # DB Version: 11 # OS Type: linux # DB Type: web # Total Memory (RAM): 16 GB # CPUs num: 8 # Connections num: 50 # Data Storage: ssd max_connections = 50 shared_buffers = 4GB effective_cache_size = 12GB maintenance_work_mem = 1GB checkpoint_completion_target = 0.7 wal_buffers = 16MB default_statistics_target = 100 random_page_cost = 1.1 effective_io_concurrency = 200 work_mem = 20971kB min_wal_size = 1GB max_wal_size = 2GB max_worker_processes = 8 max_parallel_workers_per_gather = 4 max_parallel_workers = 8 ------------------------------------ CREATE EXTENSION unaccent; SELECT unaccent('Œ Æ œ æ ß'); ------------------------------------ update documentos_archivos set contenido_filtro = unaccent(lower(descripcion || ' ' || contenido)) https://blog.kaleidos.net/como-usar-busqueda-de-texto-en-postgresql/ SELECT coalesce(descripcion,'') || ' ' || coalesce(contenido,'') AS document FROM documentos_archivos where iddocumentoarchivo = 33721 SELECT to_tsvector(coalesce(descripcion,'') || ' ' || coalesce(contenido,'')) AS document FROM documentos_archivos where iddocumentoarchivo = 33721 SELECT coalesce(descripcion,'') || ' ' || coalesce(contenido,'') AS documento FROM documentos_archivos where to_tsvector( coalesce(descripcion,'') || ' ' || coalesce(contenido,'') ) @@ to_tsquery('vela') limit 10; SELECT coalesce(descripcion,'') || ' ' || coalesce(contenido,'') AS documento FROM documentos_archivos where to_tsvector( coalesce(descripcion,'') || ' ' || coalesce(contenido,'') ) @@ plainto_tsquery('vela paredes tarapoto') limit 10; SELECT to_tsvector('english', 'a Fat Cat sat on a mat - it ate a fat rats');