Skip to Content
author's profile photo Former Member
Former Member

deleting entries from table

HI guys,

please tell me how to delete table/model entries using sql in hybris.

I used the command "delete from Policy" It shows the message "2 rows effected" but when i run the command "select * from Policy" its actually showing the data.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2016 at 09:46 AM

    Hi Ankit, The application server caches the data from the DB in memory. Whenever you use the application in order to remove data (APIs, ImpEx), the application makes sure that cache entries are invalidated, so that whenever the data is requested again, the data is fetched from the DB and renewed in the cache.

    Since you bypass the application server (using native sql), the application server is not aware of cache invalidations and for that reason shows you outdated data. You can either clear the cache manually (as suggested by ) or restart the server.

    Obviously it is not recommended to bypass the application server unless you know what you're doing :)

    Cheers, Tobias

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2016 at 09:34 AM

    Try clearing the cache in HAC>Monitoring>Cache It might help.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.