Kubo Takehiro

Results 127 comments of Kubo Takehiro

The following code, which prints one row, took about 500µs - 700µs in my environment. Could you post minimal reproducible example? ```rust use oracle::{Connection, Result}; use std::time::Instant; fn main() ->...

FIY. In the previous comment, I wrote `stmt.query(&[&param])` because it is in your code fragment. It is better to use `stmt.query_as()` when the column types are known. ```rust let rows...

Could you post the table definition and the environment information? I created `MYTABLE` and inserted 10000 rows as follows. ```sql SQL> create table MYTABLE (AAA varchar2(30), BBB varchar2(30), CCC varchar2(30),...

I guess that Oracle creates better execution plan when not using bind variables in your case as https://stackoverflow.com/questions/37005847/oracle-explain-plan-differs-when-using-bind-variables. If so, you can reproduce it on sqlplus by using [variable command](https://docs.oracle.com/en/database/oracle/oracle-database/23/sqpug/VARIABLE.html#GUID-B4A0DAA3-B6E0-42F7-89B0-EF9C41F02FA3)....

The two cases in the previous comment execute different SQL statements with different parameter types. So no wonder the execution plans are different and one is slower than the other....

I recommend you to check execution plans. I guess that Oracle optimizer chooses index scan when parameters are embedded as literals in the SQL statement. On the other hand it...

> [!NOTE] > 下記の Shell.Application を使う方法は駄目そう。 Kindle 2024 がないので動作確認できませんが、エクスプローラのPCの下に表示されるデバイス名が Kindle のみの場合は、以下で Kindle デバイスの検出とファイルのコピーはできそうです。 (MTP接続のAndroid端末でデバイス検出とファイルのコピーを確認し、Kindle 用に名前を変えたもの) ```ruby require 'win32ole' SHELL_APPLICATION = WIN32OLE.new("Shell.Application") def get_device_root_dir(volume_name) volume = SHELL_APPLICATION.NameSpace(0x11).Items.each.select do |item| name =...

動作確認ありがとうございます。 Shell.Application をWIN32OLEで使う方式はどうやら駄目そうですね……。 あと、この方式はエクスプローラでの操作と基本的に同じなので、エクスプローラで大量ファイルをコピーすると失敗するという現象の回避にはならないでしょう。 また、`file_mtime()` の動作確認していたとき、USBドライブもMTPもAPIの使い方は同じだろうという甘い考えのもとに、Kindle 10th を繋いてタイムスタンプが正しく取れることは確認した。しかし、MTP接続の Android 上のファイルに使うと 全部1899-12-30 00:00:00 +0900 といった変な値。使えるものではなかった。

@KieranKaelin Sorry for too late merge. It will be included in 0.7.0, which supports ISO 8601 extended format when alternative form `"{:#}"` is used.

Use `Arc` instead. If you have no need to wrap `Vec` with `Arc`, use `Vec` instead of `Arc`. In order to transfer type across threads, `Send` must be implemented. Both...