Questions tagged [query]
Denotes the question related to database SQL query( in context of magento ).
300 questions
0 votes
2 answers
272 views
Magento2: Disable / Modify GraphQL Field Suggestion
In GraphQL, if we enter wrong field name in search, its will suggest the alternative fields in the response. It creates some security issues in production. So we plan to disable that feature. ...
0 votes
2 answers
104 views
Servers RAM spikes after Newsletter
Whenever we send off a newsletter with say 10+ links to specific products, our server ends up overloading and our website ends up going down for 5-10 minutes until the server comes back up. The ...
0 votes
1 answer
188 views
How to get products results even its visibility is search in magento graphql
Based on visibility,filter the product in magento 2. The SKU 111324 having the visibility value is "Search". Using below graphQL query Query query { products( filter: { sku: { eq:...
1 vote
0 answers
15 views
I have a custom search function that just started having a bit of an issue with caching (I'm assuming)
I'm not sure when it started not working or if it ever worked. Helping a friend out with their website. I'm going to assume it was working at some point. I looked in the logs while refreshing the page ...
0 votes
1 answer
475 views
Is it possible to get Country Name using Select Query in Magento 2 DB?
I am trying to get the list of customers from the database directly using Mysql Query. SELECT ce.email As Email, ce.firstname As Firstname, ce.lastname As Lastname, COALESCE(NULLIF(cae.country_id,''), ...
1 vote
1 answer
510 views
magento 2 can anyone tell me how to get user permissions list from database . I need query for this .Please help me
Query to get user permissions list in magento2 Admin roles role_type table column I found related query in above link but permission column is missing . Permission column exists in authorization rule ...
0 votes
1 answer
127 views
Magento 2 - Query to know the user who update the price of the product
I am very new to magento. What is the query to to know who was the user who updated the price of a product? I just want to know the query, not the code. Thanks in advance.
0 votes
1 answer
60 views
What are the security risks associated with a Magento 2
What are the security risks associated with a Magento 2 website, and how can you mitigate them?
0 votes
2 answers
297 views
Magento 2 - Products in category page not showing
My problem is that : all products in category page not showing. And when i displayed the query of $_productColection in Magento_Catalog/templates/product/list.phtml : /** * Product list template * *...
1 vote
0 answers
131 views
Export products and additional attributes - SQL query for Magento 2
What would be the QUERY SQL to export the SKU columns and ADDITIONAL_ATTRIBUTES as shown in the product export module n Magento 2?
0 votes
1 answer
383 views
Add limit on collection of custom table and get one column value in Magento 2
I know there are solutions for getting one column as an array. $collection->getColumnValues('column_name'); And adding limit without setPageSize() and setCurPage() $collection->getSelect()-&...
0 votes
1 answer
116 views
Display individual product video descriptions for multiple videos
I am trying to provide video transcripts for each product video in a magento 2 site. I want to pull the transcript from the "video description" field in the admin area, and I have been ...
2 votes
2 answers
228 views
Slow Query on Magento 1.9 Front-End After Moving Site to a New Server
I've just moved a Magento 1.9 site using a tarball and a mysqldump of the old site to a new server having the same hardware specs as the old one, followed all instructions I could find online, saw ...
2 votes
1 answer
2k views
Magento 2 - Best way to query data from tables (select with multiple joins)
I'm learning about Collections, Repositories and DTO, and I'm still trying to figure out what's the best way to query a table to fetch data. I also found that we can use \Magento\Framework\App\...
2 votes
1 answer
633 views
Magento 2 Extremely high load on MySQL due to select query
I've seen similar questions asked on this site, but haven't seen a solution or fix to resolve the problem. Our site is spawning a large number of select queries to the point where mysql is overloaded ...