BREAD
BREAD
Explore posts from servers
TTCTheo's Typesafe Cult
Created by BREAD on 10/10/2023 in #questions
Best way to store data between routes
Is History API a good thing in terms of storing data between routes? What is the best tool to use for this purpose? I see that it stores some weird data when I reload the page instead of navigating to it on client-side At my job we are heavily using react-router and it's history API to pass data from route to route What is the approach with NextJS to achieve such thing? I was also thinking about some kind of global Context but I want simplest solution to create minimal maintenance burden
2 replies
TTCTheo's Typesafe Cult
Created by BREAD on 9/13/2023 in #questions
DatePicker for react-native
No description
7 replies
RRailway
Created by BREAD on 9/10/2023 in #✋|help
OpenSearch deployment
Hi everyone. I require assistance with deploying an instance of OpenSearch since I get an error during deployment. I'm deploying it using docker image from the docker hub: opensearchproject/opensearch Here are the ENV variables I've set up:
DISABLE_INSTALL_DEMO_CONFIG=true
DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI=true
DISABLE_SECURITY_PLUGIN=true
discovery.type=single-node
DISABLE_INSTALL_DEMO_CONFIG=true
DISABLE_PERFORMANCE_ANALYZER_AGENT_CLI=true
DISABLE_SECURITY_PLUGIN=true
discovery.type=single-node
Here are the logs of deployment:
Disabling execution of install_demo_configuration.sh for OpenSearch Security Plugin

Disabling OpenSearch Security Plugin

Disabling execution of /usr/share/opensearch/bin/opensearch-performance-analyzer/performance-analyzer-agent-cli for OpenSearch Performance Analyzer Plugin

./opensearch-docker-entrypoint.sh: line 70: 10 Killed "$@" "${opensearch_opts[@]}"
Disabling execution of install_demo_configuration.sh for OpenSearch Security Plugin

Disabling OpenSearch Security Plugin

Disabling execution of /usr/share/opensearch/bin/opensearch-performance-analyzer/performance-analyzer-agent-cli for OpenSearch Performance Analyzer Plugin

./opensearch-docker-entrypoint.sh: line 70: 10 Killed "$@" "${opensearch_opts[@]}"
Would appreciate any help
11 replies
DTDrizzle Team
Created by BREAD on 6/3/2023 in #help
Setting AUTO_INCREMENT starting value
In MySQL it is possible to make auto incremented column to start from specified value. For example ALTER TABLE tbl AUTO_INCREMENT = 100; Is it possible to do that using Drizzle?
4 replies
DTDrizzle Team
Created by BREAD on 5/31/2023 in #help
Performance questions
I'm using Drizzle ORM with Planetscale DatabaseJS driver and my application has spots where I want to decrease number of HTTP requests to my database. I have following questions: 1. Does Drizzle+DatabaseJS make separate HTTP request for each query? (I know I should be asking this question to DatabaseJS creators, but asking here in case someone is aware of that) 2. If it does, what would be the best way to group several queries so that they are performed in one HTTP request?
40 replies