There is a Web project built on servlets and jsp. A table is stored in the database; one of the fields stores time for deletion.
It was thought to use a filter that every time the servlet is called will check the database and delete obsolete data. Can derby have any built-in capabilities to delete a post-expiration record? I can not figure out how to do it better.
Request to delete a row
DELETE FROM my_table WHERE my_table.delete_day==current_day
java org.apache.derby.tools.ij my_file.sql
. For j8 already have docs.oracle.com/javase/8/docs/api/java/util/concurrent/… . Spring has its own. And there are several other implementations, for example Quartz. - Sergey Mitrofanov